Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #29 from apiaryio/miiila/make-interval-inclusive
Browse files Browse the repository at this point in the history
fix: prevent weekend alerts by inclusive interval
  • Loading branch information
abtris authored Oct 2, 2017
2 parents 137d125 + 2a1e89d commit 5ef17cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pagerduty.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function processSchedules(allSchedules, days = [], cb) {
exclusionEndDate.hours(exclusionEndTime[0]);
exclusionEndDate.minutes(exclusionEndTime[1]);

if (day.isBetween(exclusionStartDate, exclusionEndDate)) {
if (day.isBetween(exclusionStartDate, exclusionEndDate, 'minute', [])) {
debug('excluded:', message);
overlap = false;
}
Expand Down

0 comments on commit 5ef17cd

Please sign in to comment.