diff --git a/src/Umbraco.Infrastructure/Services/Implement/UserIdKeyResolver.cs b/src/Umbraco.Infrastructure/Services/Implement/UserIdKeyResolver.cs index b8a3c15553..e8ebbd6df5 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/UserIdKeyResolver.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/UserIdKeyResolver.cs @@ -85,10 +85,8 @@ internal sealed class UserIdKeyResolver : IUserIdKeyResolver .From() .Where(x => x.Id == id); - string? guidString = await scope.Database.ExecuteScalarAsync(query); - Guid fetchedKey = guidString is not null - ? new Guid(guidString) - : throw new InvalidOperationException("No user found with the specified id"); + Guid fetchedKey = scope.Database.ExecuteScalar(query) + ?? throw new InvalidOperationException("No user found with the specified id"); _idToKey[id] = fetchedKey;