@@ -10,6 +10,7 @@ import { getDatabase } from "../common/utils/mongodbUtils"
10
10
import config from "../config"
11
11
12
12
import { anonymizeApplicantsAndApplications } from "./anonymization/anonymizeApplicantAndApplications"
13
+ import { anonymizeApplications } from "./anonymization/anonymizeApplications"
13
14
import anonymizeAppointments from "./anonymization/anonymizeAppointments"
14
15
import anonymizeIndividual from "./anonymization/anonymizeIndividual"
15
16
import { anonimizeUsersWithAccounts } from "./anonymization/anonymizeUserRecruteurs"
@@ -150,10 +151,6 @@ export async function setupJobProcessor() {
150
151
cron_string : "5 0 * * *" ,
151
152
handler : ( ) => updateBrevoBlockedEmails ( { } ) ,
152
153
} ,
153
- "Anonymise les candidatures de plus de deux an" : {
154
- cron_string : "10 0 * * *" ,
155
- handler : anonymizeApplicantsAndApplications ,
156
- } ,
157
154
"Géolocation de masse des sociétés issues de l'algo" : {
158
155
cron_string : "0 5 * * 6" ,
159
156
handler : ( ) => updateGeoLocations ( { } ) ,
@@ -166,10 +163,6 @@ export async function setupJobProcessor() {
166
163
cron_string : "0 5 * * 7" ,
167
164
handler : ( ) => updateLbaCompanies ( { useAlgoFile : true , clearMongo : true } ) ,
168
165
} ,
169
- "Anonimisation des utilisateurs n'ayant effectué aucun rendez-vous de plus de 2 ans" : {
170
- cron_string : "5 1 * * *" ,
171
- handler : anonymizeUsers ,
172
- } ,
173
166
"Contrôle quotidien des candidatures" : {
174
167
cron_string : "0 10-19/1 * * 1-5" ,
175
168
handler : config . env === "production" ? ( ) => controlApplications ( ) : ( ) => Promise . resolve ( 0 ) ,
@@ -178,11 +171,23 @@ export async function setupJobProcessor() {
178
171
cron_string : "0 11-19/2 * * 1-5" ,
179
172
handler : config . env === "production" ? ( ) => controlAppointments ( ) : ( ) => Promise . resolve ( 0 ) ,
180
173
} ,
181
- "Anonymisation des user recruteurs de plus de 2 ans" : {
174
+ "Anonymisation des candidatures de plus de deux (2) ans" : {
175
+ cron_string : "15 0 * * *" ,
176
+ handler : anonymizeApplications ,
177
+ } ,
178
+ "Anonymisation des candidats & leurs candidatures de plus de deux (2) ans" : {
179
+ cron_string : "10 0 * * *" ,
180
+ handler : anonymizeApplicantsAndApplications ,
181
+ } ,
182
+ "Anonimisation des utilisateurs RDVA de plus de deux (2) ans" : {
183
+ cron_string : "5 1 * * *" ,
184
+ handler : anonymizeUsers ,
185
+ } ,
186
+ "Anonymisation des user recruteurs de plus de deux (2) ans" : {
182
187
cron_string : "0 1 * * *" ,
183
188
handler : anonimizeUsersWithAccounts ,
184
189
} ,
185
- "Anonymisation des appointments de plus de 2 ans" : {
190
+ "Anonymisation des appointments de plus de deux (2) ans" : {
186
191
cron_string : "30 1 * * *" ,
187
192
handler : anonymizeAppointments ,
188
193
} ,
0 commit comments