Use gql for "downloader"
This commit is contained in:
@@ -71,7 +71,7 @@ const DownloadQueue: React.FC = () => {
|
||||
|
||||
await Promise.all([
|
||||
// remove from download queue
|
||||
requestManager.removeChapterFromDownloadQueue(chapter.mangaId, chapter.index).response,
|
||||
requestManager.removeChapterFromDownloadQueue(chapter.id).response,
|
||||
// delete partial download, should be handle server side?
|
||||
// bug: The folder and the last image downloaded are not deleted
|
||||
requestManager.deleteDownloadedChapter(chapter.id).response,
|
||||
|
||||
@@ -146,7 +146,7 @@ const Updates: React.FC = () => {
|
||||
};
|
||||
|
||||
const downloadChapter = (chapter: IChapter) => {
|
||||
requestManager.addChapterToDownloadQueue(chapter.mangaId, chapter.index);
|
||||
requestManager.addChapterToDownloadQueue(chapter.id);
|
||||
};
|
||||
|
||||
const loadMore = useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user