1
0
Fork 0
mirror of synced 2024-07-04 14:01:27 +12:00
budibase/packages/server/initialise/buildAppContext.js
2020-02-03 09:24:25 +00:00

12 lines
294 B
JavaScript

const getMasterAppInternal = require("../utilities/masterAppInternal")
module.exports = async (config, masterIsCreated) => {
const context = { config }
if (!masterIsCreated) return context
const master = await getMasterAppInternal(context)
context.master = master
return context
}