From 760de9e791369891d132c02ec64a90a5e518d0fd Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 13 May 2024 01:21:51 +0200 Subject: [PATCH] Fetch "chapters with state" sorted by asc "source order" It was possible that the chapters were out of order which e.g. could cause issues with selecting the next chapters to download --- src/lib/graphql/queries/ChapterQuery.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/graphql/queries/ChapterQuery.ts b/src/lib/graphql/queries/ChapterQuery.ts index 01f242cc..1cd1cfa2 100644 --- a/src/lib/graphql/queries/ChapterQuery.ts +++ b/src/lib/graphql/queries/ChapterQuery.ts @@ -66,6 +66,7 @@ export const GET_MANGAS_CHAPTER_IDS_WITH_STATE = gql` chapters( filter: { mangaId: { in: $mangaIds } } condition: { isDownloaded: $isDownloaded, isRead: $isRead, isBookmarked: $isBookmarked } + orderBy: SOURCE_ORDER ) { nodes { id