Skip to content

Commit

Permalink
Fix websocket events (#1897)
Browse files Browse the repository at this point in the history
  • Loading branch information
crspeller authored Mar 26, 2024
1 parent 1aef10e commit 840a6d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/app/reminder.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (s *PlaybookRunServiceImpl) resetReminderTimer(playbookRunID string) error
return errors.Wrapf(err, "failed to update playbook run after resetting reminder timer")
}

s.poster.PublishWebsocketEventToChannel(playbookRunUpdatedWSEvent, playbookRunToModify, playbookRunToModify.ChannelID)
s.sendPlaybookRunUpdatedWS(playbookRunToModify.ID, withPlaybookRun(playbookRunToModify))

return nil
}
Expand Down Expand Up @@ -230,7 +230,7 @@ func (s *PlaybookRunServiceImpl) SetNewReminder(playbookRunID string, newReminde
}
}

s.poster.PublishWebsocketEventToChannel(playbookRunUpdatedWSEvent, playbookRunToModify, playbookRunToModify.ChannelID)
s.sendPlaybookRunUpdatedWS(playbookRunToModify.ID, withPlaybookRun(playbookRunToModify))

return nil
}
Expand Down

0 comments on commit 840a6d3

Please sign in to comment.