Method: Webhookdb::Idempotency::InDatabase#finish
- Defined in:
- lib/webhookdb/idempotency.rb
#finish(key, last_run:, stored:, result:) ⇒ Object
178 179 180 181 182 |
# File 'lib/webhookdb/idempotency.rb', line 178 def finish(key, last_run:, stored:, result:) updates = {last_run:} updates[:stored_result] = Sequel.pg_jsonb_wrap(result) if stored db[:idempotencies].where(key:).update(updates) end |