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:
parent
5ac35847af
commit
303a266720
2 changed files with 11 additions and 7 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue