run updateUsers every 5 min
All checks were successful
Test - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m49s
Test - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 3s
Test - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s

This commit is contained in:
Sosthene 2025-07-30 19:11:53 +02:00
parent ce8fbf92fe
commit bbc0c6ddcd

View File

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