@@ -109,6 +109,7 @@ async function getDataForInterview (interview, jobCandidate, job) {
109
109
* Sends notifications to all the teams which have candidates available for review
110
110
*/
111
111
async function sendCandidatesAvailableNotifications ( ) {
112
+ localLogger . debug ( '[sendCandidatesAvailableNotifications]: Looking for due records...' )
112
113
const jobsDao = await Job . findAll ( {
113
114
include : [ {
114
115
model : JobCandidate ,
@@ -190,6 +191,7 @@ async function sendCandidatesAvailableNotifications () {
190
191
* Sends reminders to the hosts and guests about their upcoming interview(s)
191
192
*/
192
193
async function sendInterviewComingUpNotifications ( ) {
194
+ localLogger . debug ( '[sendInterviewComingUpNotifications]: Looking for due records...' )
193
195
const currentTime = moment . utc ( )
194
196
const timestampFilter = {
195
197
[ Op . or ] : [ ]
@@ -281,6 +283,7 @@ async function sendInterviewComingUpNotifications () {
281
283
* Sends reminder to the interview host after it ends to change the interview status
282
284
*/
283
285
async function sendInterviewCompletedNotifications ( ) {
286
+ localLogger . debug ( '[sendInterviewCompletedNotifications]: Looking for due records...' )
284
287
const window = moment . duration ( config . INTERVIEW_COMPLETED_MATCH_WINDOW )
285
288
const rangeStart = moment . utc ( ) . subtract ( moment . duration ( config . INTERVIEW_COMPLETED_PAST_TIME ) )
286
289
const rangeEnd = rangeStart . clone ( ) . add ( window )
@@ -344,6 +347,7 @@ async function sendInterviewCompletedNotifications () {
344
347
* to update the job candidate status
345
348
*/
346
349
async function sendPostInterviewActionNotifications ( ) {
350
+ localLogger . debug ( '[sendPostInterviewActionNotifications]: Looking for due records...' )
347
351
const completedJobCandidates = await JobCandidate . findAll ( {
348
352
where : {
349
353
status : constants . JobCandidateStatus . INTERVIEW
@@ -436,6 +440,7 @@ async function sendPostInterviewActionNotifications () {
436
440
* Sends reminders to all members of teams which have atleast one upcoming resource booking expiration
437
441
*/
438
442
async function sendResourceBookingExpirationNotifications ( ) {
443
+ localLogger . debug ( '[sendResourceBookingExpirationNotifications]: Looking for due records...' )
439
444
const currentTime = moment . utc ( )
440
445
const maxEndDate = currentTime . clone ( ) . add ( moment . duration ( config . RESOURCE_BOOKING_EXPIRY_TIME ) )
441
446
0 commit comments