Commit 776bb289 authored by Jun Siang Cheah's avatar Jun Siang Cheah
Browse files

fix: bad user get

parent 7385016e
......@@ -114,7 +114,7 @@ class UsersTable:
def get_user_by_email(self, email: str) -> Optional[UserModel]:
try:
user = User.get(User.email == email and User.oauth_sub.is_null())
user = User.get((User.email == email, User.oauth_sub.is_null()))
return UserModel(**model_to_dict(user))
except:
return None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment