fix: multiple queries
All checks were successful
Build, Package and Push Images / preprocess (push) Successful in 2s
Build, Package and Push Images / build (push) Successful in 30s
Build, Package and Push Images / sbom-scan (push) Successful in 45s
Build, Package and Push Images / sonarqube (push) Successful in 1m42s
Build, Package and Push Images / container-build (push) Successful in 1m46s
Build, Package and Push Images / container-sbom-scan (push) Successful in 35s

This commit is contained in:
Timothy Schenk 2023-11-20 14:30:41 +01:00
parent 5949a7dfe5
commit aac1bbfc5f

View file

@ -43,7 +43,7 @@ public class CharacterCreationHandler : IPacketHandler<CharacterCreationPacket>
account?.Characters.Add(toBeAddedCharacter);
await _wonderkingContext.SaveChangesAsync().ConfigureAwait(true);
var character = await _wonderkingContext.Characters.AsNoTrackingWithIdentityResolution()
var character = await _wonderkingContext.Characters.AsNoTrackingWithIdentityResolution().AsSplitQuery()
.Where(c => c.Account.Id == authSession.AccountId && c.Name == packet.Name)
.Select(c =>
new CharacterData