fix(game): aktualisiere Handkarten nach gespieltem Slip
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user