We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7485678 commit 3a0213fCopy full SHA for 3a0213f
backend/apps/system/crud/user.py
@@ -73,7 +73,7 @@ async def clean_user_cache(id: int):
73
74
75
def check_account_exists(*, session: Session, account: str) -> bool:
76
- session.exec(select(func.count()).select_from(UserModel).where(UserModel.account == account)).one() > 0
+ return session.exec(select(func.count()).select_from(UserModel).where(UserModel.account == account)).one() > 0
77
def check_email_exists(*, session: Session, email: str) -> bool:
78
return session.exec(select(func.count()).select_from(UserModel).where(UserModel.email == email)).one() > 0
79
0 commit comments