1
0
Fork 0
mirror of synced 2024-07-30 02:26:11 +12:00

fix import

This commit is contained in:
Peter Clement 2023-05-19 15:14:01 +01:00
parent 9b7972fdfd
commit d7ae338bc5

View file

@ -23,7 +23,7 @@ import {
} from "@budibase/types" } from "@budibase/types"
import { getActionDefinitions as actionDefs } from "../../automations/actions" import { getActionDefinitions as actionDefs } from "../../automations/actions"
import sdk from "../../sdk" import sdk from "../../sdk"
import { isProdAppID } from "@budibase/backend-core/src/db" import { db as dbCore } from "@budibase/backend-core"
async function getActionDefinitions() { async function getActionDefinitions() {
return removeDeprecated(await actionDefs()) return removeDeprecated(await actionDefs())
@ -281,7 +281,7 @@ export async function trigger(ctx: BBContext) {
) )
ctx.body = collectedValue?.outputs ctx.body = collectedValue?.outputs
} else { } else {
if (ctx.appId && !isProdAppID(ctx.appId)) { if (ctx.appId && !dbCore.isProdAppID(ctx.appId)) {
ctx.throw(400, "Only apps in production support this endpoint") ctx.throw(400, "Only apps in production support this endpoint")
} }
await triggers.externalTrigger(automation, { await triggers.externalTrigger(automation, {