Fix tags suggestion

This commit is contained in:
Koitharu
2022-04-07 17:20:02 +03:00
parent cc6b114e4d
commit 8f9c0cbff1
2 changed files with 5 additions and 5 deletions

View File

@@ -84,7 +84,7 @@ class MangaSearchRepository(
return when {
query.isNotEmpty() && source != null -> db.tagsDao.findTags(source.name, "%$query%", limit)
query.isNotEmpty() -> db.tagsDao.findTags("%$query%", limit)
source != null -> db.tagsDao.findTags(source.name, limit)
source != null -> db.tagsDao.findPopularTags(source.name, limit)
else -> db.tagsDao.findPopularTags(limit)
}.map {
it.toMangaTag()