Skip to content

Commit

Permalink
Fix duplicated on-call schedules when there are multiple results
Browse files Browse the repository at this point in the history
  • Loading branch information
nobert committed Jul 1, 2019
1 parent 50e3ba4 commit 97bd79b
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 @@ -629,10 +629,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 97bd79b

Please sign in to comment.