From d0f856ab0063cbb6d7980eb64dba320ba17ed4c9 Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Wed, 24 Feb 2021 00:21:30 +0000 Subject: [PATCH] its probably my fault that i didnt see that in pm2 --- schedules/index.js | 1 + worker.js | 1 + 2 files changed, 2 insertions(+) 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 () => {