fix(game): aktualisiere Handkarten nach gespieltem Slip
Some checks failed
Build / build (push) Has been cancelled
OpenWiki Update / update (push) Has been cancelled

This commit is contained in:
Tim Krampitz
2026-09-10 22:03:36 +02:00
parent 01b6a41bc6
commit 732b03edb4
5 changed files with 11 additions and 3 deletions

View File

@@ -233,6 +233,7 @@ public class GameHub : Hub
var result = await _gameService.SubmitSlipAsync(gameId, playerId, cardId);
var game = await _gameService.GetGameAsync(gameId);
var hand = await _gameService.GetPlayerHandAsync(playerId);
await Clients.Group(game.LobbyCode).SendAsync("SlipSubmitted", new
{
@@ -240,6 +241,7 @@ public class GameHub : Hub
CardId = cardId,
Success = result
});
await Clients.Caller.SendAsync("PlayerHandUpdated", hand);
}
catch (UnauthorizedAccessException ex)
{