lib/ledger_sync/domains/operation/find.rb in ledger_sync-domains-1.0.2 vs lib/ledger_sync/domains/operation/find.rb in ledger_sync-domains-1.0.3
- old
+ new
@@ -8,11 +8,11 @@
class Operation
class Find < Resource
class Contract < LedgerSync::Ledgers::Contract
params do
required(:id).filled(:integer)
- required(:query).value(:hash)
+ required(:limit).value(:hash)
end
end
private
@@ -23,10 +23,10 @@
failure('Not found')
end
end
def resource
- @resource ||= resource_class.where(params[:query]).find_by(id: params[:id])
+ @resource ||= resource_class.where(params[:limit]).find_by(id: params[:id])
end
def success
super(resource)
end