Chapter backup optimization

From fc6d9aaf51 (diff-9872ccc3c9af14d2872ec99199409e60a11cb754ab23e733b1d45843778f7c95R24)
This commit is contained in:
arkon 2021-02-07 16:20:07 -05:00
parent cf1609a429
commit 79c3767fff

View File

@ -21,8 +21,8 @@ class ChapterBackupPutResolver : PutResolver<Chapter>() {
fun mapToUpdateQuery(chapter: Chapter) = UpdateQuery.builder() fun mapToUpdateQuery(chapter: Chapter) = UpdateQuery.builder()
.table(ChapterTable.TABLE) .table(ChapterTable.TABLE)
.where("${ChapterTable.COL_URL} = ?") .where("${ChapterTable.COL_ID} = ?")
.whereArgs(chapter.url) .whereArgs(chapter.id)
.build() .build()
fun mapToContentValues(chapter: Chapter) = fun mapToContentValues(chapter: Chapter) =