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
Renamed EmailNotificationService.js to NotificationsSchedulerService.js
Modified templates to add links
Adding web notifications for post interview candidate action and upcoming resource booking expiry
Tasks 476 and 477#issuecomment-898886697
@@ -179,13 +183,13 @@ async function sendCandidatesAvailableEmails () {
179
183
180
184
sentCount++
181
185
}
182
-
localLogger.debug(`[sendCandidatesAvailableEmails]: Sent notifications for ${sentCount} of ${projectIds.length} projects with Job Candidates awaiting for review.`)
186
+
localLogger.debug(`[sendCandidatesAvailableNotifications]: Sent notifications for ${sentCount} of ${projectIds.length} projects with Job Candidates awaiting for review.`)
183
187
}
184
188
185
189
/**
186
-
* Sends email reminders to the hosts and guests about their upcoming interview(s)
190
+
* Sends reminders to the hosts and guests about their upcoming interview(s)
@@ -266,17 +270,17 @@ async function sendInterviewComingUpEmails () {
266
270
267
271
sentGuestCount++
268
272
}else{
269
-
localLogger.error(`Interview id: ${interview.id} guest emails not present`,'sendInterviewComingUpEmails')
273
+
localLogger.error(`Interview id: ${interview.id} guest emails not present`,'sendInterviewComingUpNotifications')
270
274
}
271
275
}
272
276
273
-
localLogger.debug(`[sendInterviewComingUpEmails]: Sent notifications for ${sentHostCount} hosts and ${sentGuestCount} guest of ${interviews.length} interviews which are coming soon.`)
277
+
localLogger.debug(`[sendInterviewComingUpNotifications]: Sent notifications for ${sentHostCount} hosts and ${sentGuestCount} guest of ${interviews.length} interviews which are coming soon.`)
274
278
}
275
279
276
280
/**
277
-
* Sends email reminder to the interview host after it ends to change the interview status
281
+
* Sends reminder to the interview host after it ends to change the interview status
@@ -332,14 +336,14 @@ async function sendInterviewCompletedEmails () {
332
336
sentCount++
333
337
}
334
338
335
-
localLogger.debug(`[sendInterviewCompletedEmails]: Sent notifications for ${sentCount} of ${interviews.length} interviews which must be ended by now.`)
339
+
localLogger.debug(`[sendInterviewCompletedNotifications]: Sent notifications for ${sentCount} of ${interviews.length} interviews which must be ended by now.`)
336
340
}
337
341
338
342
/**
339
-
* Sends email reminder to the all members of teams which have interview completed to take action
343
+
* Sends reminder to the all members of teams which have interview completed to take action
localLogger.debug(`[sendPostInterviewActionEmails]: Found ${projectIds.length} projects with ${completedJobCandidates.length} Job Candidates with interview completed awaiting for an action.`)
373
+
localLogger.debug(`[sendPostInterviewActionNotifications]: Found ${projectIds.length} projects with ${completedJobCandidates.length} Job Candidates with interview completed awaiting for an action.`)
localLogger.debug(`[sendPostInterviewActionEmails]: Sent notifications for ${sentCount} of ${projectIds.length} projects with Job Candidates with interview completed awaiting for an action.`)
432
+
localLogger.debug(`[sendPostInterviewActionNotifications]: Sent notifications for ${sentCount} of ${projectIds.length} projects with Job Candidates with interview completed awaiting for an action.`)
410
433
}
411
434
412
435
/**
413
-
* Sends reminder emails to all members of teams which have atleast one upcoming resource booking expiration
436
+
* Sends reminders to all members of teams which have atleast one upcoming resource booking expiration
localLogger.debug(`[sendResourceBookingExpirationEmails]: Found ${projectIds.length} projects with ${expiringResourceBookings.length} Resource Bookings expiring in less than 3 weeks.`)
468
+
localLogger.debug(`[sendResourceBookingExpirationNotifications]: Found ${projectIds.length} projects with ${expiringResourceBookings.length} Resource Bookings expiring in less than 3 weeks.`)
localLogger.debug(`[sendResourceBookingExpirationEmails]: Sent notifications for ${sentCount} of ${projectIds.length} projects with Resource Bookings expiring in less than 3 weeks.`)
534
+
localLogger.debug(`[sendResourceBookingExpirationNotifications]: Sent notifications for ${sentCount} of ${projectIds.length} projects with Resource Bookings expiring in less than 3 weeks.`)
490
535
}
491
536
492
537
/**
493
-
* Send email through a particular template
538
+
* Send notification through a particular template
494
539
* @param {Object} currentUser the user who perform this operation
495
540
* @param {Object} data the email object
496
-
* @returns {undefined}
541
+
* @param {Array} webNotifications the optional list of web notifications
0 commit comments