From c7fe69353b37636386043e86de5031220be8e406 Mon Sep 17 00:00:00 2001 From: Shamicen Date: Sun, 3 Mar 2024 09:55:40 +0100 Subject: [PATCH] fixed wrong mapping --- data/src/main/java/tachiyomi/data/manga/MangaMapper.kt | 8 ++++---- .../main/java/tachiyomi/data/manga/MangaRepositoryImpl.kt | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/data/src/main/java/tachiyomi/data/manga/MangaMapper.kt b/data/src/main/java/tachiyomi/data/manga/MangaMapper.kt index 1940be6b5..d41a07d38 100644 --- a/data/src/main/java/tachiyomi/data/manga/MangaMapper.kt +++ b/data/src/main/java/tachiyomi/data/manga/MangaMapper.kt @@ -27,8 +27,8 @@ object MangaMapper { updateStrategy: UpdateStrategy, calculateInterval: Long, lastModifiedAt: Long, - lastModifiedAtLocal: Long?, favoriteModifiedAt: Long?, + lastModifiedAtLocal: Long?, ): Manga = Manga( id = id, source = source, @@ -51,8 +51,8 @@ object MangaMapper { updateStrategy = updateStrategy, initialized = initialized, lastModifiedAt = lastModifiedAt, - lastModifiedAtLocal = lastModifiedAtLocal, favoriteModifiedAt = favoriteModifiedAt, + lastModifiedAtLocal = lastModifiedAtLocal, ) fun mapLibraryManga( @@ -77,8 +77,8 @@ object MangaMapper { updateStrategy: UpdateStrategy, calculateInterval: Long, lastModifiedAt: Long, - lastModifiedAtLocal: Long?, favoriteModifiedAt: Long?, + lastModifiedAtLocal: Long?, totalCount: Long, readCount: Double, latestUpload: Long, @@ -109,8 +109,8 @@ object MangaMapper { updateStrategy, calculateInterval, lastModifiedAt, - lastModifiedAtLocal, favoriteModifiedAt, + lastModifiedAtLocal, ), category = category, totalChapters = totalCount, diff --git a/data/src/main/java/tachiyomi/data/manga/MangaRepositoryImpl.kt b/data/src/main/java/tachiyomi/data/manga/MangaRepositoryImpl.kt index ef424ad54..0a34e465f 100644 --- a/data/src/main/java/tachiyomi/data/manga/MangaRepositoryImpl.kt +++ b/data/src/main/java/tachiyomi/data/manga/MangaRepositoryImpl.kt @@ -105,8 +105,8 @@ class MangaRepositoryImpl( chapterFlags = manga.chapterFlags, coverLastModified = manga.coverLastModified, dateAdded = manga.dateAdded, - lastModifiedAtLocal = manga.lastModifiedAtLocal, updateStrategy = manga.updateStrategy, + lastModifiedAtLocal = manga.lastModifiedAtLocal, ) mangasQueries.selectLastInsertedRowId() }