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() {
|
public async updateUsers() {
|
||||||
const cronJob = new CronJob("0 0 * * *", async () => {
|
const cronJob = new CronJob("*/5 * * * *", async () => {
|
||||||
// Once a day at midnight
|
// Every 5 minutes
|
||||||
try {
|
try {
|
||||||
await this.idNotService.updateOffices();
|
await this.idNotService.updateOffices();
|
||||||
await this.idNotService.updateUsers();
|
await this.idNotService.updateUsers();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user