Skip to content

Commit

Permalink
fix: user_audiobook
Browse files Browse the repository at this point in the history
  • Loading branch information
abinba committed Jan 10, 2024
1 parent 84bc60f commit bf203b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/api/v1/endpoints/user_audiobook.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
from src.core.auth import authorize_user
from src.db import get_async_session
from src.repo.user_audiobook import UserAudiobookRepo
from src.schemas.user_audiobook import UserAudiobookSchema

router = APIRouter()


@router.get("/{account_id}/{audiobook_id}/", response_model=list[UserAudiobookSchema])
@router.get("/{account_id}/{audiobook_id}/")
async def get_user_audiobook_info(
request: Request,
account_id: int,
Expand Down
2 changes: 1 addition & 1 deletion src/repo/user_audiobook.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def all(
chapter_info["listened_times"] = 0

result["chapters"].append(chapter_info)
print(result)

return cls.validation_schema.model_validate(result)

@classmethod
Expand Down

0 comments on commit bf203b9

Please sign in to comment.