diff --git a/backend/apps/webui/models/users.py b/backend/apps/webui/models/users.py index 8b154638b..598712b4d 100644 --- a/backend/apps/webui/models/users.py +++ b/backend/apps/webui/models/users.py @@ -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