v0.1.3 release
fixed some issues, forgot which ones
This commit is contained in:
parent
7f138cf73f
commit
b25949a8f3
9 changed files with 35 additions and 7 deletions
|
@ -20,6 +20,14 @@ public static class UsersRepository
|
|||
await using var db = new AppDBContext();
|
||||
return await db.Users.FirstOrDefaultAsync(user => user.UserID == userId);
|
||||
}
|
||||
|
||||
public static async Task<UserData> getUserByEmailRawAsync(string email)
|
||||
{
|
||||
await using var db = new AppDBContext();
|
||||
return await db.Users
|
||||
.Where(user => user.Email == email)
|
||||
.FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public static async Task<UserData> getUserByEmailAsync(string email)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue