Fix example in README

This commit is contained in:
2026-01-28 11:44:37 -03:00
parent 3e73a3494b
commit 856d35edc8
+2 -2
View File
@@ -192,10 +192,10 @@ from project.api.books.schemas import BookSchema
422: ErrorSchema,
500: ErrorSchema,
})
async def get_book_by_id(id: NanoID) -> BookSchema:
async def get_book_by_id(book_id: NanoID) -> BookSchema:
"""Fetches a book by ID."""
book = Book.get_or_none(id=id)
book = Book.get_or_none(id=book_id)
if book is None:
raise NotFoundError("book")