From 94ebd7c6ef300b93441f9a865c9ffe96239371b6 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Tue, 22 Oct 2024 14:36:15 +0100 Subject: [PATCH] update automation emitter --- packages/server/src/events/AutomationEmitter.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/server/src/events/AutomationEmitter.ts b/packages/server/src/events/AutomationEmitter.ts index 32fd130929..a63273bdc0 100644 --- a/packages/server/src/events/AutomationEmitter.ts +++ b/packages/server/src/events/AutomationEmitter.ts @@ -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() // don't emit even if we've reached max automation chain