From 2ae5e91aa36f097477e8c7142ff97995420dedb9 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 19 Sep 2023 02:26:14 -0700 Subject: fix(manga): no refetch for novels --- src/lib/Media/manga.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/Media/manga.ts b/src/lib/Media/manga.ts index 82ae5b0d..c2bbf5db 100644 --- a/src/lib/Media/manga.ts +++ b/src/lib/Media/manga.ts @@ -13,7 +13,7 @@ export const chapterCount = async ( return chapters.chapters === -1 ? null : chapters.chapters; } - if (preferActivity || manga.format === 'NOVEL') { + if (preferActivity) { return await recentMediaActivities(identity, manga); } @@ -28,6 +28,10 @@ export const chapterCount = async ( return anilistData; }; + if (manga.format === 'NOVEL') { + return await tryRecentMediaActivities(); + } + const mangadexData = await ( await fetch( `/api/mangadex/manga?english=${manga.title.english}&year=${manga.startDate.year}&romaji=${manga.title.romaji}&native=${manga.title.native}` -- cgit v1.2.3