diff --git a/build/azure-pipelines.yml b/build/azure-pipelines.yml index 59362a566c..b33e4a6cc0 100644 --- a/build/azure-pipelines.yml +++ b/build/azure-pipelines.yml @@ -553,6 +553,7 @@ stages: dependsOn: - Build - Build_Docs + - Deploy_MyGet # Change to "Deploy_Nuget" after release of v14 condition: and(succeeded(), or(startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), ${{parameters.uploadApiDocs}})) jobs: - job: 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;