File tree 1 file changed +3
-2
lines changed
backend/src/modules/azure/schedules
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ export class SynchronizeADUsersCronUseCase implements SynchronizeADUsersCronUseC
28
28
) { }
29
29
30
30
//Runs every saturday at mid-night
31
- //@Cron ('0 0 * * 6')
32
- @Cron ( '0 14 * * *' )
31
+ @Cron ( '0 0 * * 6' )
33
32
async execute ( ) {
34
33
try {
35
34
const usersADAll = await this . authAzureService . getADUsers ( ) ;
@@ -64,6 +63,8 @@ export class SynchronizeADUsersCronUseCase implements SynchronizeADUsersCronUseC
64
63
65
64
await this . removeUsersFromApp ( usersADFiltered , usersApp ) ;
66
65
await this . addUsersToApp ( usersADFiltered , usersApp ) ;
66
+
67
+ this . logger . log ( 'Synchronization of users between App and AD runned successfully.' ) ;
67
68
} catch ( err ) {
68
69
this . logger . error (
69
70
`An error occurred while synchronizing users between AD and Aplit Application. Message: ${ err . message } `
You can’t perform that action at this time.
0 commit comments