Method: Webhookdb::Replicator::Base#synchronous_processing_response_body
- Defined in:
- lib/webhookdb/replicator/base.rb
#synchronous_processing_response_body(upserted:, request:) ⇒ String
Call with the value that was inserted by synchronous processing. Takes the row values being upserted (result upsert_webhook), and the arguments used to upsert it (arguments to upsert_webhook), and should return the body string to respond back with.
68 69 70 71 |
# File 'lib/webhookdb/replicator/base.rb', line 68 def synchronous_processing_response_body(upserted:, request:) return {message: "process synchronously"}.to_json if Webhookdb::Replicator.always_process_synchronously raise NotImplementedError, "must be implemented if process_webhooks_synchronously? is true" end |