Log messages translated into english and some punctuation fixes.

This commit is contained in:
Ruberoid 2025-07-22 00:10:00 +03:00
parent d88f8498d6
commit 136d8329fb

View File

@ -56,12 +56,12 @@ public sealed class UsersService : IUsersService
var user = await _repository.GetUserById(userId, cancellationToken);
if (user == null)
{
_logger.LogWarning("User with ID {UserId} not found for blocking bot", userId);
_logger.LogWarning("User with ID {UserId} not found for blocking bot.", userId);
return;
}
await _repository.UpdateBotBlockedStatus(userId, true, cancellationToken);
_logger.LogInformation("Bot blocked for user {UserId}", userId);
_logger.LogInformation("Bot blocked for user {UserId}.", userId);
}
public async Task UnblockBot(long userId, CancellationToken cancellationToken = default)
@ -69,12 +69,12 @@ public sealed class UsersService : IUsersService
var user = await _repository.GetUserById(userId, cancellationToken);
if (user == null)
{
_logger.LogWarning("User with ID {UserId} not found for unblocking bot", userId);
_logger.LogWarning("User with ID {UserId} not found for unblocking bot.", userId);
return;
}
await _repository.UpdateBotBlockedStatus(userId, false, cancellationToken);
_logger.LogInformation("Bot unblocked for user {UserId}", userId);
_logger.LogInformation("Bot unblocked for user {UserId}.", userId);
}
private static UserData? MapToUserData(User? user)