Update name of types constant
This commit is contained in:
parent
6fc70fa0ab
commit
f1d5691fb7
|
@ -2,7 +2,7 @@ const {
|
||||||
getScreenParams,
|
getScreenParams,
|
||||||
generateScreenID,
|
generateScreenID,
|
||||||
getPluginParams,
|
getPluginParams,
|
||||||
DocumentTypes,
|
DocumentType,
|
||||||
} = require("../../db/utils")
|
} = require("../../db/utils")
|
||||||
const { AccessController } = require("@budibase/backend-core/roles")
|
const { AccessController } = require("@budibase/backend-core/roles")
|
||||||
const { getAppDB } = require("@budibase/backend-core/context")
|
const { getAppDB } = require("@budibase/backend-core/context")
|
||||||
|
@ -60,7 +60,7 @@ exports.save = async ctx => {
|
||||||
})
|
})
|
||||||
|
|
||||||
// Update the app metadata
|
// Update the app metadata
|
||||||
const application = await db.get(DocumentTypes.APP_METADATA)
|
const application = await db.get(DocumentType.APP_METADATA)
|
||||||
let usedPlugins = application.usedPlugins || []
|
let usedPlugins = application.usedPlugins || []
|
||||||
|
|
||||||
requiredPlugins.forEach(plugin => {
|
requiredPlugins.forEach(plugin => {
|
||||||
|
|
Loading…
Reference in New Issue