diff --git a/back/schedule.ts b/back/schedule.ts index 585fd242..2be45603 100644 --- a/back/schedule.ts +++ b/back/schedule.ts @@ -44,8 +44,11 @@ const run = async () => { }; app - .listen(config.cronPort, () => { - run(); + .listen(config.cronPort, async () => { + await require('./loaders/sentry').default({ expressApp: app }); + await require('./loaders/db').default(); + + await run(); Logger.info(` ################################################ 🛡️ Schedule listening on port: ${config.cronPort} 🛡️