From d2a903c6bd9f0227404007e7ac06a6d9ea0a4451 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Sat, 29 Jun 2024 16:34:33 +0200 Subject: [PATCH] add player replacements to pushed broadcast rounds --- modules/relay/src/main/RelayPush.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/relay/src/main/RelayPush.scala b/modules/relay/src/main/RelayPush.scala index ff226320c6cc..bdcdb12df6f7 100644 --- a/modules/relay/src/main/RelayPush.scala +++ b/modules/relay/src/main/RelayPush.scala @@ -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 =>