Renames and changes
This commit is contained in:
@@ -23,12 +23,12 @@ namespace Musify.Infrastructure.Identity
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
logger.LogError("Operation to retrieve Keycloak user with id {KeycloakId} was cancelled.", keycloakId);
|
||||
logger.LogError("Operation to retrieve Keycloak user with id={KeycloakId} was cancelled.", keycloakId);
|
||||
return Result.Error("Operation was cancelled.");
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
logger.LogWarning(exception, "Keycloak user with id {KeycloakId} could not be retrieved.", keycloakId);
|
||||
logger.LogWarning(exception, "Keycloak user with id={KeycloakId} could not be retrieved.", keycloakId);
|
||||
return Result.NotFound();
|
||||
}
|
||||
return Result.Success(KeycloakUserMapper.Map(keycloakUser));
|
||||
|
||||
Reference in New Issue
Block a user