fix import

This commit is contained in:
Peter Clement 2023-05-19 15:14:01 +01:00
parent 9b7972fdfd
commit d7ae338bc5
1 changed files with 2 additions and 2 deletions

View File

@ -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, {