mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-10 11:08:56 +01:00
insert error entry one by one
This commit is contained in:
@@ -6,6 +6,10 @@ import tachiyomi.domain.libraryUpdateError.repository.LibraryUpdateErrorReposito
|
||||
class InsertLibraryUpdateErrors(
|
||||
private val libraryUpdateErrorRepository: LibraryUpdateErrorRepository,
|
||||
) {
|
||||
suspend fun upsert(libraryUpdateError: LibraryUpdateError) {
|
||||
return libraryUpdateErrorRepository.upsert(libraryUpdateError)
|
||||
}
|
||||
|
||||
suspend fun insert(libraryUpdateError: LibraryUpdateError) {
|
||||
return libraryUpdateErrorRepository.insert(libraryUpdateError)
|
||||
}
|
||||
|
||||
@@ -13,6 +13,8 @@ interface LibraryUpdateErrorRepository {
|
||||
|
||||
suspend fun delete(errorId: Long)
|
||||
|
||||
suspend fun upsert(libraryUpdateError: LibraryUpdateError)
|
||||
|
||||
suspend fun insert(libraryUpdateError: LibraryUpdateError)
|
||||
|
||||
suspend fun insertAll(libraryUpdateErrors: List<LibraryUpdateError>)
|
||||
|
||||
@@ -6,8 +6,11 @@ import tachiyomi.domain.libraryUpdateErrorMessage.repository.LibraryUpdateErrorM
|
||||
class InsertLibraryUpdateErrorMessages(
|
||||
private val libraryUpdateErrorMessageRepository: LibraryUpdateErrorMessageRepository,
|
||||
) {
|
||||
suspend fun get(message: String): Long? {
|
||||
return libraryUpdateErrorMessageRepository.get(message)
|
||||
}
|
||||
|
||||
suspend fun insert(libraryUpdateErrorMessage: LibraryUpdateErrorMessage): Long? {
|
||||
suspend fun insert(libraryUpdateErrorMessage: LibraryUpdateErrorMessage): Long {
|
||||
return libraryUpdateErrorMessageRepository.insert(libraryUpdateErrorMessage)
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,9 @@ interface LibraryUpdateErrorMessageRepository {
|
||||
|
||||
suspend fun deleteAll()
|
||||
|
||||
suspend fun insert(libraryUpdateErrorMessage: LibraryUpdateErrorMessage): Long?
|
||||
suspend fun get(message: String): Long?
|
||||
|
||||
suspend fun insert(libraryUpdateErrorMessage: LibraryUpdateErrorMessage): Long
|
||||
|
||||
suspend fun insertAll(libraryUpdateErrorMessages: List<LibraryUpdateErrorMessage>): List<Pair<Long, String>>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user