Update name of types constant

This commit is contained in:
Andrew Kingston 2022-08-12 14:01:56 +01:00
parent 6fc70fa0ab
commit f1d5691fb7
1 changed files with 2 additions and 2 deletions

View File

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