From aac1bbfc5ff9b969888ab8548e127c957a39dcf1 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Mon, 20 Nov 2023 14:30:41 +0100 Subject: [PATCH] fix: multiple queries --- Server/PacketHandlers/CharacterCreationHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/PacketHandlers/CharacterCreationHandler.cs b/Server/PacketHandlers/CharacterCreationHandler.cs index 614a676..6df2f58 100644 --- a/Server/PacketHandlers/CharacterCreationHandler.cs +++ b/Server/PacketHandlers/CharacterCreationHandler.cs @@ -43,7 +43,7 @@ public class CharacterCreationHandler : IPacketHandler 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