fix: bad query
All checks were successful
Build, Package and Push Images / preprocess (push) Successful in 2s
Build, Package and Push Images / build (push) Successful in 28s
Build, Package and Push Images / sbom-scan (push) Successful in 39s
Build, Package and Push Images / container-build (push) Successful in 1m21s
Build, Package and Push Images / sonarqube (push) Successful in 1m22s
Build, Package and Push Images / container-sbom-scan (push) Successful in 33s

This commit is contained in:
Timothy Schenk 2023-11-24 21:06:59 +01:00
parent 3f311956c6
commit 0d14701031

View file

@ -16,6 +16,6 @@ public partial class LoginHandler
EF.CompileAsyncQuery((WonderkingContext context, Account account) => context.Accounts.Update(account));
private static readonly Func<WonderkingContext, string, Task<Account>> _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));
}