Merge remote-tracking branch 'origin/release/14.0' into v14/dev

This commit is contained in:
Bjarke Berg
2023-06-21 09:05:31 +02:00
2 changed files with 3 additions and 4 deletions

View File

@@ -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:

View File

@@ -85,10 +85,8 @@ internal sealed class UserIdKeyResolver : IUserIdKeyResolver
.From<UserDto>()
.Where<UserDto>(x => x.Id == id);
string? guidString = await scope.Database.ExecuteScalarAsync<string?>(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<Guid?>(query)
?? throw new InvalidOperationException("No user found with the specified id");
_idToKey[id] = fetchedKey;