Refactored app service init to load config

no-issue
This commit is contained in:
Fabien O'Carroll 2019-04-15 12:58:42 +02:00
parent d31395412b
commit 29948da3bc

View File

@ -3,12 +3,11 @@ const Promise = require('bluebird');
const common = require('../../lib/common');
const config = require('../../config');
const loader = require('./loader');
const internalApps = config.get('apps:internal');
module.exports = {
init: function () {
debug('init begin');
const appsToLoad = internalApps;
const appsToLoad = config.get('apps:internal');
return Promise.map(appsToLoad, appName => loader.activateAppByName(appName))
.catch(function (err) {