fixed wrong mapping

This commit is contained in:
Shamicen 2024-03-03 09:55:40 +01:00
parent 8d99652e34
commit c7fe69353b
2 changed files with 5 additions and 5 deletions

View file

@ -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,

View file

@ -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()
}