Skip to content

Commit

Permalink
[Codegen] Request manga download count with chapter deletion mutation (
Browse files Browse the repository at this point in the history
…#516)

After deleting a chapter, the download count of the chapters manga did not update, because the information was not requested with the mutation
  • Loading branch information
schroda authored Dec 25, 2023
1 parent 168e8f8 commit 2390361
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/graphql/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 8 additions & 0 deletions src/lib/graphql/mutations/DownloaderMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ export const DELETE_DOWNLOADED_CHAPTER = gql`
chapters {
id
isDownloaded
manga {
id
downloadCount
}
}
}
}
Expand All @@ -40,6 +44,10 @@ export const DELETE_DOWNLOADED_CHAPTERS = gql`
chapters {
id
isDownloaded
manga {
id
downloadCount
}
}
}
}
Expand Down

0 comments on commit 2390361

Please sign in to comment.