Replace deprecated gql sort inputs
Was missed in e1e2cbc679 and caused unexpected behaviour due to the response data being incorrectly sorted
This commit is contained in:
@@ -135,7 +135,7 @@ export const GET_MANGAS_CHAPTER_IDS_WITH_STATE = gql`
|
|||||||
chapters(
|
chapters(
|
||||||
filter: { mangaId: { in: $mangaIds } }
|
filter: { mangaId: { in: $mangaIds } }
|
||||||
condition: { isDownloaded: $isDownloaded, isRead: $isRead, isBookmarked: $isBookmarked }
|
condition: { isDownloaded: $isDownloaded, isRead: $isRead, isBookmarked: $isBookmarked }
|
||||||
orderBy: SOURCE_ORDER
|
order: [{ by: SOURCE_ORDER }]
|
||||||
) {
|
) {
|
||||||
nodes {
|
nodes {
|
||||||
...CHAPTER_STATE_FIELDS
|
...CHAPTER_STATE_FIELDS
|
||||||
|
|||||||
@@ -1864,9 +1864,8 @@ export class RequestManager {
|
|||||||
document,
|
document,
|
||||||
{
|
{
|
||||||
condition: { mangaId: Number(mangaId) },
|
condition: { mangaId: Number(mangaId) },
|
||||||
orderBy: ChapterOrderBy.SourceOrder,
|
order: [{ by: ChapterOrderBy.SourceOrder, byType: SortOrder.Desc }],
|
||||||
orderByType: SortOrder.Desc,
|
} satisfies GetChaptersMangaQueryVariables as unknown as Variables,
|
||||||
} as unknown as Variables,
|
|
||||||
options,
|
options,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -2048,8 +2047,8 @@ export class RequestManager {
|
|||||||
GQLMethod.USE_QUERY,
|
GQLMethod.USE_QUERY,
|
||||||
document,
|
document,
|
||||||
{
|
{
|
||||||
orderBy: CategoryOrderBy.Order,
|
order: [{ by: CategoryOrderBy.Order }],
|
||||||
} as unknown as Variables,
|
} satisfies GetCategoriesSettingsQueryVariables as unknown as Variables,
|
||||||
options,
|
options,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -2062,8 +2061,8 @@ export class RequestManager {
|
|||||||
GQLMethod.QUERY,
|
GQLMethod.QUERY,
|
||||||
document,
|
document,
|
||||||
{
|
{
|
||||||
orderBy: CategoryOrderBy.Order,
|
order: [{ by: CategoryOrderBy.Order }],
|
||||||
} as unknown as Variables,
|
} satisfies GetCategoriesSettingsQueryVariables as unknown as Variables,
|
||||||
options,
|
options,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user