budibase/packages/server/initialise/buildAppContext.js

12 lines
294 B
JavaScript
Raw Normal View History

const getMasterAppInternal = require("../utilities/masterAppInternal")
2019-07-09 08:29:50 +02:00
module.exports = async (config, masterIsCreated) => {
const context = { config }
2019-07-09 08:29:50 +02:00
if (!masterIsCreated) return context
const master = await getMasterAppInternal(context)
context.master = master
return context
}