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