Skip to content

Commit

Permalink
Merge pull request #131 from nobert/fix_schedule_duplication
Browse files Browse the repository at this point in the history
Fix duplicated on-call schedules when there are multiple matches
  • Loading branch information
stephenyeargin authored Jul 4, 2019
2 parents cc2b273 + 97bd79b commit ea684fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/pagerduty.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,10 @@ module.exports = (robot) ->
cb null

if scheduleName?
withScheduleMatching msg, scheduleName, (s) ->
renderSchedule s, (err) ->
SchedulesMatching msg, scheduleName, (s) ->
async.map s, renderSchedule, (err) ->
if err?
robot.emit 'error'
robot.emit 'error', err, msg
return
msg.send messages.join("\n")
else
Expand Down

0 comments on commit ea684fb

Please sign in to comment.