fix(manga-repository): Fix selected entries while bulk-selection won't show as selected (#927)

Disable problematic SELECT query in `insertNetworkManga` which causing `getMangaByUrlAndSource` flow not triggered
This commit is contained in:
Cuong-Tran 2025-05-26 16:53:12 +07:00 committed by GitHub
parent 5ac35847af
commit 303a266720
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 7 deletions

View file

@ -149,8 +149,11 @@ class MangaRepositoryImpl(
updateCover = !it.ogThumbnailUrl.isNullOrBlank(),
// SY <--
updateDetails = it.initialized,
mapper = MangaMapper::mapManga,
// KMK -->
// mapper = MangaMapper::mapManga,
)
mangasQueries.getMangaByUrlAndSource(it.url, it.source, MangaMapper::mapManga)
// KMK <--
.executeAsOne()
}
}

View file

@ -246,12 +246,13 @@ insertNetworkManga {
AND url = :url
AND favorite = 0;
-- Finally return the manga
SELECT *
FROM mangas
WHERE source = :source
AND url = :url
LIMIT 1;
-- KMK : Disabled the following SELECT as it will cause `getMangaByUrlAndSource` flow not triggered
-- -- Finally return the manga
-- SELECT *
-- FROM mangas
-- WHERE source = :source
-- AND url = :url
-- LIMIT 1;
}
getEhMangaWithMetadata: