Merge pull request 'Update updateUsers cron job to trigger every 5 min' (#1) from fix_update_users into legacy_dev
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m46s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 4s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s

Reviewed-on: #1
This commit is contained in:
Omar 2025-07-21 13:12:44 +00:00
commit ff3ef6b3b7

View File

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