From 79c3767fff90b5cbeb9529cf56e9077a6cfa145a Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 7 Feb 2021 16:20:07 -0500 Subject: [PATCH] Chapter backup optimization From https://github.com/jobobby04/TachiyomiSY/commit/fc6d9aaf519ce8830d3b45fd704b32e37f3f786f#diff-9872ccc3c9af14d2872ec99199409e60a11cb754ab23e733b1d45843778f7c95R24 --- .../data/database/resolvers/ChapterBackupPutResolver.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/database/resolvers/ChapterBackupPutResolver.kt b/app/src/main/java/eu/kanade/tachiyomi/data/database/resolvers/ChapterBackupPutResolver.kt index 76516139fb..dcf3912c2e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/database/resolvers/ChapterBackupPutResolver.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/database/resolvers/ChapterBackupPutResolver.kt @@ -21,8 +21,8 @@ class ChapterBackupPutResolver : PutResolver() { fun mapToUpdateQuery(chapter: Chapter) = UpdateQuery.builder() .table(ChapterTable.TABLE) - .where("${ChapterTable.COL_URL} = ?") - .whereArgs(chapter.url) + .where("${ChapterTable.COL_ID} = ?") + .whereArgs(chapter.id) .build() fun mapToContentValues(chapter: Chapter) =