Log messages translated into english and some punctuation fixes.
This commit is contained in:
parent
d88f8498d6
commit
136d8329fb
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user