1
0
Fork 0
mirror of synced 2024-07-06 23:10:57 +12:00
budibase/packages/server/initialise/buildAppContext.js

12 lines
294 B
JavaScript
Raw Normal View History

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