Skip to content

Commit

Permalink
Исправления изменения статуса сессии
Browse files Browse the repository at this point in the history
  • Loading branch information
Fooxboy committed Oct 29, 2023
1 parent c331fd3 commit 71716ca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions MyOwnGame.Backend/Services/SessionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,15 @@ public async Task ChangeRound(int roundPosition, string connectionId)
throw new Exception("Ошибка при смене раунда");
}

var session = _sessionsManager.GetSessionById(player.SessionId);

if (session is null)
{
throw new Exception("Не найдена сессия");
}

session.ChangeStateToTable();

await _callbackService.RoundChanged(player.SessionId, roundInfo.RoundInfo);

await _callbackService.ChangeSelectQuestionPlayer(player.SessionId, roundInfo.QuestionPlayer);
Expand Down

0 comments on commit 71716ca

Please sign in to comment.