Fixes based on test failures.
This commit is contained in:
parent
2ba9088faa
commit
dbde23a4de
|
@ -466,8 +466,9 @@ async function destroyApp(ctx: BBContext) {
|
||||||
|
|
||||||
if (isUnpublish) {
|
if (isUnpublish) {
|
||||||
appId = dbCore.getProdAppID(appId)
|
appId = dbCore.getProdAppID(appId)
|
||||||
|
const devAppId = dbCore.getDevAppID(appId)
|
||||||
// sync before removing the published app
|
// sync before removing the published app
|
||||||
await sdk.applications.syncApp(appId)
|
await sdk.applications.syncApp(devAppId)
|
||||||
}
|
}
|
||||||
|
|
||||||
const db = isUnpublish ? context.getProdAppDB() : context.getAppDB()
|
const db = isUnpublish ? context.getProdAppDB() : context.getAppDB()
|
||||||
|
|
|
@ -17,7 +17,6 @@ const {
|
||||||
checkBuilderEndpoint,
|
checkBuilderEndpoint,
|
||||||
} = require("./utilities/TestFunctions")
|
} = require("./utilities/TestFunctions")
|
||||||
const setup = require("./utilities")
|
const setup = require("./utilities")
|
||||||
const { basicScreen, basicLayout } = setup.structures
|
|
||||||
const { AppStatus } = require("../../../db/utils")
|
const { AppStatus } = require("../../../db/utils")
|
||||||
const { events } = require("@budibase/backend-core")
|
const { events } = require("@budibase/backend-core")
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ export async function syncApp(appId: string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dbCore.isDevAppID(appId)) {
|
if (dbCore.isProdAppID(appId)) {
|
||||||
throw new Error("This action cannot be performed for production apps")
|
throw new Error("This action cannot be performed for production apps")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue