You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
localLogger.debug(`[sendCandidatesAvailableEmails]: Found ${projectIds.length} project with Job Candidates awaiting for review.`)
125
+
123
126
// for each unique project id, send an email
124
127
for(constprojectIdofprojectIds){
125
128
constproject=awaitgetProjectWithId(projectId)
@@ -216,6 +219,8 @@ async function sendInterviewComingUpEmails () {
216
219
raw: true
217
220
})
218
221
222
+
localLogger.debug(`[sendInterviewComingUpEmails]: Found ${interviews.length} Interviews which are coming soon.`)
223
+
219
224
for(constinterviewofinterviews){
220
225
// send host email
221
226
constdata=awaitgetDataForInterview(interview)
@@ -288,6 +293,8 @@ async function sendInterviewCompletedEmails () {
288
293
raw: true
289
294
})
290
295
296
+
localLogger.debug(`[sendInterviewCompletedEmails]: Found ${interviews.length} Interviews which must be ended by now.`)
297
+
291
298
for(constinterviewofinterviews){
292
299
if(_.isEmpty(interview.hostEmail)){
293
300
localLogger.error(`Interview id: ${interview.id} host email not present`)
@@ -330,6 +337,8 @@ async function sendPostInterviewActionEmails () {
330
337
}]
331
338
})
332
339
340
+
localLogger.debug(`[sendPostInterviewActionEmails]: Found ${completedJobCandidates.length} Job Candidates with interview completed awaiting for an action.`)
341
+
333
342
// get all project ids for this job candidates
334
343
constjobs=awaitJob.findAll({
335
344
where: {
@@ -410,6 +419,8 @@ async function sendResourceBookingExpirationEmails () {
localLogger.debug(`[sendResourceBookingExpirationEmails]: Found ${projectIds.length} project with ${expiringResourceBookings.length} Resource Bookings expiring in less than 3 weeks.`)
0 commit comments