Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
armanddidierjean committed Nov 6, 2023
1 parent b214309 commit 7a7ff45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/endpoints/todos.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def check_todo(
"""

# We first need to make sur an item with the identifier `id` exist
item = await cruds_todos.get_item_by_id(db=db, id=id)
item = await cruds_todos.get_items_by_user_id(db=db, id=id)
if item is None:
raise HTTPException(status_code=404, detail="Todo item not found")
# We need to make sure the item belongs to the current user
Expand Down

0 comments on commit 7a7ff45

Please sign in to comment.