Don't exclude same source when checking for duplicate entries
Closes #8870
This commit is contained in:
@@ -7,7 +7,7 @@ class GetDuplicateLibraryManga(
|
||||
private val mangaRepository: MangaRepository,
|
||||
) {
|
||||
|
||||
suspend fun await(title: String, sourceId: Long): Manga? {
|
||||
return mangaRepository.getDuplicateLibraryManga(title.lowercase(), sourceId)
|
||||
suspend fun await(title: String): Manga? {
|
||||
return mangaRepository.getDuplicateLibraryManga(title.lowercase())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ interface MangaRepository {
|
||||
|
||||
fun getFavoritesBySourceId(sourceId: Long): Flow<List<Manga>>
|
||||
|
||||
suspend fun getDuplicateLibraryManga(title: String, sourceId: Long): Manga?
|
||||
suspend fun getDuplicateLibraryManga(title: String): Manga?
|
||||
|
||||
suspend fun resetViewerFlags(): Boolean
|
||||
|
||||
|
||||
Reference in New Issue
Block a user