Skip to content

Commit 6e93b84

Browse files
fix: issue 1598 fix users synchronization cron time (#1599)
1 parent 8e369cb commit 6e93b84

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

backend/src/modules/azure/schedules/synchronize-ad-users.cron.azure.use-case.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export class SynchronizeADUsersCronUseCase implements SynchronizeADUsersCronUseC
2828
) {}
2929

3030
//Runs every saturday at mid-night
31-
//@Cron('0 0 * * 6')
32-
@Cron('0 14 * * *')
31+
@Cron('0 0 * * 6')
3332
async execute() {
3433
try {
3534
const usersADAll = await this.authAzureService.getADUsers();
@@ -64,6 +63,8 @@ export class SynchronizeADUsersCronUseCase implements SynchronizeADUsersCronUseC
6463

6564
await this.removeUsersFromApp(usersADFiltered, usersApp);
6665
await this.addUsersToApp(usersADFiltered, usersApp);
66+
67+
this.logger.log('Synchronization of users between App and AD runned successfully.');
6768
} catch (err) {
6869
this.logger.error(
6970
`An error occurred while synchronizing users between AD and Aplit Application. Message: ${err.message}`

0 commit comments

Comments
 (0)