Add option to update tracking on manual mark as read

This commit is contained in:
schroda
2024-04-20 23:15:02 +02:00
parent d35ef4fa7f
commit 1a16dba7bd
12 changed files with 66 additions and 20 deletions

View File

@@ -146,6 +146,7 @@ export const UPDATE_CHAPTER = gql`
`;
export const UPDATE_CHAPTERS = gql`
${BASE_TRACK_RECORD_FIELDS}
mutation UPDATE_CHAPTERS(
$input: UpdateChaptersInput!
$getBookmarked: Boolean!
@@ -153,6 +154,8 @@ export const UPDATE_CHAPTERS = gql`
$getLastPageRead: Boolean!
$chapterIdsToDelete: [Int!]!
$deleteChapters: Boolean!
$mangaId: Int!
$trackProgress: Boolean!
) {
updateChapters(input: $input) {
clientMutationId
@@ -192,5 +195,10 @@ export const UPDATE_CHAPTERS = gql`
}
}
}
trackProgress(input: { mangaId: $mangaId }) @include(if: $trackProgress) {
trackRecords {
...BASE_TRACK_RECORD_FIELDS
}
}
}
`;