update automation emitter

This commit is contained in:
Peter Clement 2024-10-22 14:36:15 +01:00
parent 75f17f5c12
commit 94ebd7c6ef
1 changed files with 11 additions and 1 deletions

View File

@ -31,7 +31,17 @@ class AutomationEmitter {
} }
} }
async emitRow(eventName: string, appId: string, row: Row, table?: Table) { async emitRow({
eventName,
appId,
row,
table,
}: {
eventName: string
appId: string
row: Row
table?: Table
}) {
let MAX_AUTOMATION_CHAIN = await this.getMaxAutomationChain() let MAX_AUTOMATION_CHAIN = await this.getMaxAutomationChain()
// don't emit even if we've reached max automation chain // don't emit even if we've reached max automation chain