lib/ledger_sync/domains/operation/update.rb in ledger_sync-domains-1.0.2 vs lib/ledger_sync/domains/operation/update.rb in ledger_sync-domains-1.0.3

- old
+ new

@@ -8,11 +8,11 @@ class Operation class Update < Resource class Contract < LedgerSync::Ledgers::Contract params do required(:id).filled(:integer) - required(:query).value(:hash) + required(:limit).value(:hash) end end private @@ -28,10 +28,10 @@ ) 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