From d7ae338bc5f41d9b0f9b25eb75a0d2892c181ea8 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Fri, 19 May 2023 15:14:01 +0100 Subject: [PATCH] fix import --- packages/server/src/api/controllers/automation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/api/controllers/automation.ts b/packages/server/src/api/controllers/automation.ts index 67c550357a..79f93c3efa 100644 --- a/packages/server/src/api/controllers/automation.ts +++ b/packages/server/src/api/controllers/automation.ts @@ -23,7 +23,7 @@ import { } from "@budibase/types" import { getActionDefinitions as actionDefs } from "../../automations/actions" import sdk from "../../sdk" -import { isProdAppID } from "@budibase/backend-core/src/db" +import { db as dbCore } from "@budibase/backend-core" async function getActionDefinitions() { return removeDeprecated(await actionDefs()) @@ -281,7 +281,7 @@ export async function trigger(ctx: BBContext) { ) ctx.body = collectedValue?.outputs } else { - if (ctx.appId && !isProdAppID(ctx.appId)) { + if (ctx.appId && !dbCore.isProdAppID(ctx.appId)) { ctx.throw(400, "Only apps in production support this endpoint") } await triggers.externalTrigger(automation, {