Include missing manga data in updater subscription

E.g., the unread chapter count of a manga was not updated in case new chapters were found during the update.

Regression b673047517
This commit is contained in:
schroda
2025-05-09 01:32:30 +02:00
parent 0a853082db
commit 5d5cd5ac59

View File

@@ -7,14 +7,21 @@
*/ */
import gql from 'graphql-tag'; import gql from 'graphql-tag';
import { MANGA_CHAPTER_NODE_FIELDS, MANGA_CHAPTER_STAT_FIELDS } from '@/lib/graphql/fragments/MangaFragments.ts';
const UPDATER_MANGA_FIELDS = gql` const UPDATER_MANGA_FIELDS = gql`
${MANGA_CHAPTER_STAT_FIELDS}
${MANGA_CHAPTER_NODE_FIELDS}
fragment UPDATER_MANGA_FIELDS on MangaUpdateType { fragment UPDATER_MANGA_FIELDS on MangaUpdateType {
status status
manga { manga {
id id
title title
thumbnailUrl thumbnailUrl
...MANGA_CHAPTER_STAT_FIELDS
...MANGA_CHAPTER_NODE_FIELDS
} }
} }
`; `;