Change order of update manga migration
This prevents issues of manga having a specific library state while they are incorrectly in or not in categories. E.g. a manga was removed from the library but the category update mutation failed, which now causes it to still be in the set categories while not being in the library anymore
This commit is contained in:
@@ -113,13 +113,6 @@ export const UPDATE_MANGA = gql`
|
||||
$updateCategoryInput: UpdateMangaCategoriesInput!
|
||||
$updateCategories: Boolean!
|
||||
) {
|
||||
updateManga(input: $input) {
|
||||
manga {
|
||||
id
|
||||
inLibrary
|
||||
inLibraryAt
|
||||
}
|
||||
}
|
||||
updateMangaCategories(input: $updateCategoryInput) @include(if: $updateCategories) {
|
||||
manga {
|
||||
id
|
||||
@@ -134,6 +127,13 @@ export const UPDATE_MANGA = gql`
|
||||
}
|
||||
}
|
||||
}
|
||||
updateManga(input: $input) {
|
||||
manga {
|
||||
id
|
||||
inLibrary
|
||||
inLibraryAt
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -143,11 +143,9 @@ export const UPDATE_MANGAS = gql`
|
||||
$updateCategoryInput: UpdateMangasCategoriesInput!
|
||||
$updateCategories: Boolean!
|
||||
) {
|
||||
updateMangas(input: $input) {
|
||||
updateMangasCategories(input: $updateCategoryInput) @include(if: $updateCategories) {
|
||||
mangas {
|
||||
id
|
||||
inLibrary
|
||||
inLibraryAt
|
||||
categories {
|
||||
nodes {
|
||||
id
|
||||
@@ -159,9 +157,11 @@ export const UPDATE_MANGAS = gql`
|
||||
}
|
||||
}
|
||||
}
|
||||
updateMangasCategories(input: $updateCategoryInput) @include(if: $updateCategories) {
|
||||
updateMangas(input: $input) {
|
||||
mangas {
|
||||
id
|
||||
inLibrary
|
||||
inLibraryAt
|
||||
categories {
|
||||
nodes {
|
||||
id
|
||||
|
||||
Reference in New Issue
Block a user