feat: support book reviews

This commit is contained in:
Cory Dransfeldt 2024-06-02 14:00:39 -07:00
parent abb4ba37f3
commit 80d222cdbc
No known key found for this signature in database
5 changed files with 7 additions and 5 deletions

View file

@ -63,6 +63,8 @@ export default async function () {
return {
title: book['title'],
author,
review: book['review'],
rating: book['star_rating'] !== 'unrated' ? book['star_rating'] : '',
description: book['description'],
image: book['thumbnail'],
url: `/books/${book['isbn']}`,
@ -70,7 +72,6 @@ export default async function () {
status: book['read_status'],
progress: book['progress'],
tags: book['tags'],
rating: book['star_rating'] !== 'unrated' ? book['star_rating'] : '',
isbn: book['isbn'],
type: 'book',
}