diff --git a/backend/src/user/service.py b/backend/src/user/service.py index fc364b53..d56231b1 100644 --- a/backend/src/user/service.py +++ b/backend/src/user/service.py @@ -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