Method: Webhookdb::Replicator::Base#on_dependency_webhook_upsert

Defined in:
lib/webhookdb/replicator/base.rb

#on_dependency_webhook_upsert(replicator, payload, changed:) ⇒ Object

Called when the upstream dependency upserts. In most cases, you can noop; but in some cases, you may want to update or fetch rows. One example would be a ‘db only’ integration, where values are taken from the parent service and added to this service’s table. We may want to upsert rows in our table whenever a row in our parent table changes.

Parameters:

Raises:

  • (NotImplementedError)


1119
1120
1121
# File 'lib/webhookdb/replicator/base.rb', line 1119

def on_dependency_webhook_upsert(replicator, payload, changed:)
  raise NotImplementedError, "this must be overridden for replicators that have dependencies"
end