fix + vershions configs
This commit is contained in:
parent
9987500ac0
commit
89651a8e81
5 changed files with 94 additions and 71 deletions
|
|
@ -29,7 +29,10 @@ async def signup(body: UserCreate, db: AsyncSession = Depends(get_db)):
|
|||
detail="Promo-code is not valid"
|
||||
)
|
||||
existing = await db.execute(
|
||||
select(User).where(User.email == body.email)
|
||||
select(User).where(
|
||||
User.email == body.email,
|
||||
User.deleted_at.is_(None)
|
||||
)
|
||||
)
|
||||
if existing.scalar_one_or_none():
|
||||
raise HTTPException(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue