diff --git a/schedules/index.js b/schedules/index.js index 1149050f..ae0d70d9 100644 --- a/schedules/index.js +++ b/schedules/index.js @@ -12,6 +12,7 @@ const Mongo = require(__dirname+'/../db/db.js') await Mongo.connect(); await Mongo.checkVersion(); + await config.load(); //start all the scheduled tasks const schedules = require(__dirname+'/tasks/index.js'); diff --git a/worker.js b/worker.js index b5b86918..89a85905 100644 --- a/worker.js +++ b/worker.js @@ -5,6 +5,7 @@ process .on('unhandledRejection', console.error); const Mongo = require(__dirname+'/db/db.js') + , config = require(__dirname+'/config.js'); (async () => {