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 3a8571b commit b4d4c3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MyOwnGame.Backend/Helpers/SessionEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public enum SessionEvents
/// <summary>
/// Игрок попытался ответить
/// </summary>
PlayerTryedAnswer,
PlayerTriedAnswer,

/// <summary>
/// Игрок дал верный ответ
Expand Down
4 changes: 2 additions & 2 deletions MyOwnGame.Backend/Services/SessionCallbackService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ await _hubContext.Clients.Group(sessionId.ToString()).SendAsync(SessionEvents.Pl
PlayerDto.Create(player));
}

public async Task PlayerTryedAnswer(long sessionId, Player player)
public async Task PlayerTriedAnswer(long sessionId, Player player)
{
await _hubContext.Clients.Group(sessionId.ToString()).SendAsync(SessionEvents.PlayerTryedAnswer.ToString(),
await _hubContext.Clients.Group(sessionId.ToString()).SendAsync(SessionEvents.PlayerTriedAnswer.ToString(),
PlayerDto.Create(player));
}

Expand Down
2 changes: 1 addition & 1 deletion MyOwnGame.Backend/Services/SessionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ public async Task GiveAnswer(DateTime time, string connectionId)

if (session.State != SessionState.Question || session.ReadyToAnswerTime > DateTime.UtcNow || session.RespondingPlayer is not null)
{
await _callbackService.PlayerTryedAnswer(player.SessionId, player);
await _callbackService.PlayerTriedAnswer(player.SessionId, player);
return;
}

Expand Down

0 comments on commit b4d4c3d

Please sign in to comment.