This commit is contained in:
Michael Drury 2021-06-08 18:29:34 +01:00
parent 033258b495
commit b48342c55c
4 changed files with 15 additions and 1308 deletions

View File

@ -99,7 +99,6 @@ async function createInstance(template) {
// replicate the template data to the instance DB
// this is currently very hard to test, downloading and importing template files
/* istanbul ignore next */
let _rev
if (template && template.useTemplate === "true") {
const { ok } = await db.load(await getTemplateStream(template))
if (!ok) {

View File

@ -5,7 +5,7 @@ const {
} = require("../../db/utils")
const { InternalTables } = require("../../db/utils")
const { addAppRoleToUser } = require("../../utilities/workerRequests")
const { getGlobalUsers, getGlobalUser } = require("../../utilities/global")
const { getGlobalUsers } = require("../../utilities/global")
const { getFullUser } = require("../../utilities/users")
function removeGlobalProps(user) {

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,5 @@
const fetch = require("node-fetch")
const { DocumentTypes } = require("@budibase/auth").db
const CouchDB = require("../../db")
const env = require("../../environment")
const APP_PREFIX = "app_"
const URL_REGEX_SLASH = /\/|\\/g