diff options
| author | Fuwn <[email protected]> | 2024-01-26 13:17:10 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-26 13:17:10 -0800 |
| commit | 22b2e80da51e8fcead0c2a5646e61a37cec4f7f5 (patch) | |
| tree | a176a451fdbc2f76af1a19e5108af8e8e997e67d /src/lib | |
| parent | refactor(layout): use default identity settings on reset (diff) | |
| download | due.moe-22b2e80da51e8fcead0c2a5646e61a37cec4f7f5.tar.xz due.moe-22b2e80da51e8fcead0c2a5646e61a37cec4f7f5.zip | |
fix(chapters): insert no chapter on no guess
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/Media/Manga/chapters.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/Media/Manga/chapters.ts b/src/lib/Media/Manga/chapters.ts index b3a8e7b9..b44c44c4 100644 --- a/src/lib/Media/Manga/chapters.ts +++ b/src/lib/Media/Manga/chapters.ts @@ -90,7 +90,15 @@ export const chapterCount = async ( // } const tryRecentMediaActivities = async () => { - if (disableGuessing) return null; + if (disableGuessing) { + await database.chapters.put({ + id: manga.id, + chapters: -1, + volumes: null + }); + + return null; + } const anilistData = await recentMediaActivities( identity, |