budibase/packages/server/initialise/buildAppContext.js

11 lines
313 B
JavaScript
Raw Normal View History

2019-07-09 08:29:50 +02:00
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;
};