Skip to content

Commit 80c4784

Browse files
committed
Added error catcher for other notification scheduler functions
1 parent 6c19a24 commit 80c4784

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/services/NotificationsSchedulerService.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ async function getDataForInterview (interview, jobCandidate, job) {
9090
if (!user) { return null }
9191

9292
const interviewLink = `${config.TAAS_APP_URL}/${job.projectId}/positions/${job.id}/candidates/interviews`
93-
// const guestName = _.isEmpty(interview.guestNames) ? '' : interview.guestNames[0]
9493
const startTime = interview.startTimestamp ? helper.formatDateTimeEDT(interview.startTimestamp) : ''
9594
const jobUrl = `${config.TAAS_APP_URL}/${job.projectId}/positions/${job.id}`
9695
const applicationUrl = `${config.TAAS_APP_EARN_URL}?status=Active%20Gigs`
@@ -792,13 +791,13 @@ function errorCatchWrapper (callback, name) {
792791

793792
module.exports = {
794793
sendNotification,
795-
sendCandidatesAvailableNotifications,
796-
sendInterviewComingUpNotifications,
797-
sendInterviewCompletedNotifications,
794+
sendCandidatesAvailableNotifications: errorCatchWrapper(sendCandidatesAvailableNotifications, 'sendCandidatesAvailableNotifications'),
795+
sendInterviewComingUpNotifications: errorCatchWrapper(sendInterviewComingUpNotifications, 'sendInterviewComingUpNotifications'),
796+
sendInterviewCompletedNotifications: errorCatchWrapper(sendInterviewCompletedNotifications, 'sendInterviewCompletedNotifications'),
798797
sendInterviewExpiredNotifications: errorCatchWrapper(sendInterviewExpiredNotifications, 'sendInterviewExpiredNotifications'),
799798
sendInterviewScheduleReminderNotifications: errorCatchWrapper(sendInterviewScheduleReminderNotifications, 'sendInterviewScheduleReminderNotifications'),
800799
updateInterviewStatus,
801800
sendInterviewInvitationNotifications,
802-
sendPostInterviewActionNotifications,
803-
sendResourceBookingExpirationNotifications
801+
sendPostInterviewActionNotifications: errorCatchWrapper(sendPostInterviewActionNotifications, 'sendPostInterviewActionNotifications'),
802+
sendResourceBookingExpirationNotifications: errorCatchWrapper(sendResourceBookingExpirationNotifications, 'sendResourceBookingExpirationNotifications')
804803
}

0 commit comments

Comments
 (0)