From 0d14701031dfc88878e3c3fb92a4411bcbdc8279 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Fri, 24 Nov 2023 21:06:59 +0100 Subject: [PATCH] fix: bad query --- Server/PacketHandlers/LoginHandler.CompiledQueries.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/PacketHandlers/LoginHandler.CompiledQueries.cs b/Server/PacketHandlers/LoginHandler.CompiledQueries.cs index 53ddc66..ff05c32 100644 --- a/Server/PacketHandlers/LoginHandler.CompiledQueries.cs +++ b/Server/PacketHandlers/LoginHandler.CompiledQueries.cs @@ -16,6 +16,6 @@ public partial class LoginHandler EF.CompileAsyncQuery((WonderkingContext context, Account account) => context.Accounts.Update(account)); private static readonly Func> _getAccount = - EF.CompileQuery((WonderkingContext context, string username) => - context.Accounts.FirstOrDefaultAsync(a => a.Username == username, default)); + EF.CompileAsyncQuery((WonderkingContext context, string username) => + context.Accounts.FirstOrDefault(a => a.Username == username)); }