Skip to content

Commit

Permalink
Minor fix - return docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
bakar-io committed Apr 12, 2024
1 parent 30ad78c commit 8e1a151
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/app/api/threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ async def add_thread_state(
tid: ThreadID,
payload: ThreadPostRequest,
):
"""Add state to a thread."""
thread = await storage.get_thread(user["user_id"], tid)
if not thread:
raise HTTPException(status_code=404, detail="Thread not found")
Expand Down

0 comments on commit 8e1a151

Please sign in to comment.