run updateUsers every 5 min
All checks were successful
All checks were successful
This commit is contained in:
parent
ce8fbf92fe
commit
bbc0c6ddcd
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user