mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
perf: remove unused tags, metadataScore, durationSeconds from BookCard
- drop tags field and bookTags fan-out query from all BookCard paths - drop metadataScore from BookCard select (only used in BookDetail) - fix durationSeconds: was never selected in DB; derive audiobook badge from file format using FORMAT_TO_GROUP instead
This commit is contained in:
@@ -38,13 +38,10 @@ export type BookCard = {
|
||||
publishedYear: number | null;
|
||||
language: string | null;
|
||||
genres: string[];
|
||||
tags: string[];
|
||||
rating: number | null;
|
||||
readingProgress: number | null;
|
||||
readStatus: UserBookStatus | null;
|
||||
metadataScore: number | null;
|
||||
addedAt: string;
|
||||
durationSeconds: number | null;
|
||||
};
|
||||
|
||||
export type BookDetailFile = {
|
||||
|
||||
Reference in New Issue
Block a user