Add filters and columns for hardcover rating and review count

This commit is contained in:
aditya.chandel
2025-05-31 14:32:07 -06:00
committed by Aditya Chandel
parent 4c3d9423fd
commit 8518e57d92
4 changed files with 12 additions and 6 deletions
@@ -28,6 +28,8 @@ export class SortService {
amazonReviewCount: (book) => book.metadata?.amazonReviewCount || null,
goodreadsRating: (book) => book.metadata?.goodreadsRating || null,
goodreadsReviewCount: (book) => book.metadata?.goodreadsReviewCount || null,
hardcoverRating: (book) => book.metadata?.hardcoverRating || null,
hardcoverReviewCount: (book) => book.metadata?.hardcoverReviewCount || null,
locked: (book) =>
Object.keys(book.metadata ?? {})
.filter((key) => key.endsWith('Locked'))