From 3a1a600b913b14b860c5513de61eaf56c25bd9c7 Mon Sep 17 00:00:00 2001 From: Dean Date: Thu, 4 Jul 2024 15:19:56 +0100 Subject: [PATCH] PR feedback --- packages/server/src/automations/triggers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/src/automations/triggers.ts b/packages/server/src/automations/triggers.ts index 12119d36a8..9c7a3b72c3 100644 --- a/packages/server/src/automations/triggers.ts +++ b/packages/server/src/automations/triggers.ts @@ -2,6 +2,7 @@ import emitter from "../events/index" import { getAutomationParams, isDevAppID } from "../db/utils" import { coerce } from "../utilities/rowProcessor" import { definitions } from "./triggerInfo" +import { logging } from "@budibase/backend-core" // need this to call directly, so we can get a response import { automationQueue } from "./bullboard" import { checkTestFlag } from "../utilities/redis" @@ -69,7 +70,7 @@ async function queueRelevantRowAutomations( try { await automationQueue.add({ automation, event }, JOB_OPTS) } catch (e) { - console.error("Failed to queue automation", e) + logging.logAlert("Failed to queue automation", e) } } }