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)); }