Update updateUsers cron job to trigger every 5 min

This commit is contained in:
Omar Oughriss 2025-07-21 15:14:02 +02:00
parent 49790c4f18
commit 5934213e95

View File

@ -68,7 +68,7 @@ export default class CronService {
} }
} }
public async updateUsers() { public async updateUsers() {
const cronJob = new CronJob("0 0 * * *", async () => { const cronJob = new CronJob("*/5 * * * *", async () => {
// Once a day at midnight // Once a day at midnight
try { try {
await this.idNotService.updateOffices(); await this.idNotService.updateOffices();