Fix last route

This commit is contained in:
2023-02-01 01:08:15 +01:00
parent ec44d7c383
commit e6cbf5862e

View File

@@ -38,7 +38,7 @@ async def get_books(
return await BookFilterService.get(book_filter, request.app.state.redis) return await BookFilterService.get(book_filter, request.app.state.redis)
@book_router.get("/last", response_model=CustomPage[RemoteBook]) @book_router.get("/last", response_model=RemoteBook)
async def get_last_book(): async def get_last_book():
book = ( book = (
await BookDB.objects.select_related( await BookDB.objects.select_related(