We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f42c10 commit ccf0f97Copy full SHA for ccf0f97
notifications/lib/notifications/slack_notifier.rb
@@ -53,7 +53,7 @@ def notify_about_timer_reset(event)
53
game = ReadModel::GameReadModel.find_by(id: event.data[:game_id])
54
return unless game && game.slack_token
55
player_id = game.registered_slots&.dig(event.data[:slot])
56
- player = Player.find(player_id) if player_id
+ player = Player.find_by(id: player_id) if player_id
57
CustomSlackClient.post_message(
58
channel: game.slack_channel,
59
text: game.build_slack_timer_reset_message(event.data, player),
0 commit comments