Fix chapters and categories not being added to database
Closes #3278 Fixes #3291
This commit is contained in:
-1
@@ -28,7 +28,6 @@ class CategoriesRestorer(
|
||||
val order = nextOrder++
|
||||
database.categoriesQueries
|
||||
.insert(it.name, order, it.flags)
|
||||
.awaitAsOne()
|
||||
.let { id -> it.toCategory(id).copy(order = order) }
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -241,7 +241,7 @@ class MangaRestorer(
|
||||
* @return id of [Manga], null if not found
|
||||
*/
|
||||
private suspend fun insertManga(manga: Manga): Long {
|
||||
return database.mangasQueries.insert(
|
||||
return database.mangasQueries.insertReturningId(
|
||||
source = manga.source,
|
||||
url = manga.url,
|
||||
artist = manga.artist,
|
||||
|
||||
Reference in New Issue
Block a user