Skip to content

Commit

Permalink
remove delete user code
Browse files Browse the repository at this point in the history
  • Loading branch information
xerbalind committed Mar 11, 2024
1 parent de94a49 commit 40cbb03
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions backend/src/user/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ async def create_user(db: Session, user: schemas.UserCreate) -> models.User:
db.refresh(db_user)
return db_user


async def delete_user(db: Session, user_id: str):
db.query(models.User).filter_by(uid=user_id).delete()
db.commit()


async def set_admin(db: Session, user_id: str, value: bool):
user = await get_by_id(db, user_id)
user.is_admin = value
Expand Down

0 comments on commit 40cbb03

Please sign in to comment.