1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00
budibase/packages/server/initialise/buildAppContext.js
2019-07-09 07:29:50 +01:00

11 lines
313 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;
};