Skip to content

Commit

Permalink
add player replacements to pushed broadcast rounds
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jun 29, 2024
1 parent dba7650 commit d2a903c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/relay/src/main/RelayPush.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ final class RelayPush(
private def push(rt: RelayRound.WithTour, rawGames: Vector[RelayGame], andSyncTargets: Boolean) =
workQueue(rt.round.id):
for
games <- fidePlayers.enrichGames(rt.tour)(rawGames)
withPlayers <- fuccess(rt.tour.players.fold(rawGames)(_.update(rawGames)))
games <- fidePlayers.enrichGames(rt.tour)(withPlayers)
event <- sync
.updateStudyChapters(rt, rt.tour.players.fold(games)(_.update(games)))
.map: res =>
Expand Down

0 comments on commit d2a903c

Please sign in to comment.