File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ async function sendCandidatesAvailableNotifications () {
192
192
*/
193
193
async function sendInterviewComingUpNotifications ( ) {
194
194
localLogger . debug ( '[sendInterviewComingUpNotifications]: Looking for due records...' )
195
- const currentTime = moment . utc ( )
195
+ const currentTime = moment . utc ( ) . startOf ( 'minute' )
196
196
const timestampFilter = {
197
197
[ Op . or ] : [ ]
198
198
}
@@ -204,10 +204,10 @@ async function sendInterviewComingUpNotifications () {
204
204
timestampFilter [ Op . or ] . push ( {
205
205
[ Op . and ] : [
206
206
{
207
- [ Op . gt ] : rangeStart
207
+ [ Op . gte ] : rangeStart
208
208
} ,
209
209
{
210
- [ Op . lte ] : rangeEnd
210
+ [ Op . lt ] : rangeEnd
211
211
}
212
212
]
213
213
} )
@@ -290,7 +290,7 @@ async function sendInterviewComingUpNotifications () {
290
290
async function sendInterviewCompletedNotifications ( ) {
291
291
localLogger . debug ( '[sendInterviewCompletedNotifications]: Looking for due records...' )
292
292
const window = moment . duration ( config . INTERVIEW_COMPLETED_MATCH_WINDOW )
293
- const rangeStart = moment . utc ( ) . subtract ( moment . duration ( config . INTERVIEW_COMPLETED_PAST_TIME ) )
293
+ const rangeStart = moment . utc ( ) . startOf ( 'minute' ) . subtract ( moment . duration ( config . INTERVIEW_COMPLETED_PAST_TIME ) )
294
294
const rangeEnd = rangeStart . clone ( ) . add ( window )
295
295
const filter = {
296
296
[ Op . and ] : [
You can’t perform that action at this time.
0 commit comments