[Codegen] Request manga download count with chapter deletion mutation (#516)

After deleting a chapter, the download count of the chapters manga did not update, because the information was not requested with the mutation
This commit is contained in:
schroda
2023-12-25 21:15:41 +01:00
committed by GitHub
parent 168e8f82f6
commit 2390361fb2
2 changed files with 10 additions and 2 deletions

View File

@@ -2292,14 +2292,14 @@ export type DeleteDownloadedChapterMutationVariables = Exact<{
}>;
export type DeleteDownloadedChapterMutation = { __typename?: 'Mutation', deleteDownloadedChapter: { __typename?: 'DeleteDownloadedChapterPayload', clientMutationId?: string | null, chapters: { __typename?: 'ChapterType', id: number, isDownloaded: boolean } } };
export type DeleteDownloadedChapterMutation = { __typename?: 'Mutation', deleteDownloadedChapter: { __typename?: 'DeleteDownloadedChapterPayload', clientMutationId?: string | null, chapters: { __typename?: 'ChapterType', id: number, isDownloaded: boolean, manga: { __typename?: 'MangaType', id: number, downloadCount: number } } } };
export type DeleteDownloadedChaptersMutationVariables = Exact<{
input: DeleteDownloadedChaptersInput;
}>;
export type DeleteDownloadedChaptersMutation = { __typename?: 'Mutation', deleteDownloadedChapters: { __typename?: 'DeleteDownloadedChaptersPayload', clientMutationId?: string | null, chapters: Array<{ __typename?: 'ChapterType', id: number, isDownloaded: boolean }> } };
export type DeleteDownloadedChaptersMutation = { __typename?: 'Mutation', deleteDownloadedChapters: { __typename?: 'DeleteDownloadedChaptersPayload', clientMutationId?: string | null, chapters: Array<{ __typename?: 'ChapterType', id: number, isDownloaded: boolean, manga: { __typename?: 'MangaType', id: number, downloadCount: number } }> } };
export type DequeueChapterDownloadMutationVariables = Exact<{
input: DequeueChapterDownloadInput;

View File

@@ -28,6 +28,10 @@ export const DELETE_DOWNLOADED_CHAPTER = gql`
chapters {
id
isDownloaded
manga {
id
downloadCount
}
}
}
}
@@ -40,6 +44,10 @@ export const DELETE_DOWNLOADED_CHAPTERS = gql`
chapters {
id
isDownloaded
manga {
id
downloadCount
}
}
}
}