Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
westonplatter authored Feb 14, 2025
2 parents 3ef9d2f + f178e58 commit 0f180e7
Show file tree
Hide file tree
Showing 6 changed files with 294 additions and 234 deletions.
2 changes: 0 additions & 2 deletions backend/app/api/routes/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ def delete_user_me(session: SessionDep, current_user: CurrentUser) -> Any:
raise HTTPException(
status_code=403, detail="Super users are not allowed to delete themselves"
)
statement = delete(Item).where(col(Item.owner_id) == current_user.id)
session.exec(statement) # type: ignore
session.delete(current_user)
session.commit()
return Message(message="User deleted successfully")
Expand Down
2 changes: 1 addition & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ But it would be only to clean them up, leaving them won't really have any effect
* From the top level project directory, run the script:

```bash
./scripts/generate-frontend-client.sh
./scripts/generate-client.sh
```

* Commit the changes.
Expand Down
Loading

0 comments on commit 0f180e7

Please sign in to comment.