mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	@@ -7,7 +7,7 @@ class GetDuplicateLibraryManga(
 | 
			
		||||
    private val mangaRepository: MangaRepository,
 | 
			
		||||
) {
 | 
			
		||||
 | 
			
		||||
    suspend fun await(title: String): Manga? {
 | 
			
		||||
        return mangaRepository.getDuplicateLibraryManga(title.lowercase())
 | 
			
		||||
    suspend fun await(manga: Manga): List<Manga> {
 | 
			
		||||
        return mangaRepository.getDuplicateLibraryManga(manga.id, manga.title.lowercase())
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -23,7 +23,7 @@ interface MangaRepository {
 | 
			
		||||
 | 
			
		||||
    fun getFavoritesBySourceId(sourceId: Long): Flow<List<Manga>>
 | 
			
		||||
 | 
			
		||||
    suspend fun getDuplicateLibraryManga(title: String): Manga?
 | 
			
		||||
    suspend fun getDuplicateLibraryManga(id: Long, title: String): List<Manga>
 | 
			
		||||
 | 
			
		||||
    suspend fun resetViewerFlags(): Boolean
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user