HOTFIX: Ajustado para utilização da .env correta

This commit is contained in:
Desenvolvimento 2026-02-02 14:33:45 -03:00
parent 1341fb6785
commit 55ef702141
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,8 @@
// src/infra/cron/observer.cron.js
const loadEnv = require('../../config/env.loader.js')
loadEnv()
const cron = require('node-cron')
const {logError, logInfo} = require('../../shared/utils/logger')
const runWatchdog = require('../../modules/watchdog/job/job')
@ -15,4 +18,4 @@ cron.schedule('*/5 * * * *', async () => {
logError('[CRON] ❌ Erro no Watchdog', { error })
}
})

View File

@ -1,7 +1,5 @@
// src/modules/watchdog/job/job.js
require('dotenv').config({ path: '.env.development' })
const { logError, logInfo } = require('../../../shared/utils/logger')
const { notifyCollaborators } = require('../services/notifyCollaborators.service.js')
const { notifyAdmins } = require('../services/notifyAdmins.service.js')