Fix graphql tracking (#840)

This commit is contained in:
Mitchell Syer
2024-01-21 20:04:24 -05:00
committed by GitHub
parent 0621138478
commit b9053e3057
3 changed files with 18 additions and 9 deletions

View File

@@ -439,7 +439,7 @@ object Chapter {
}
if (isRead == true || markPrevRead == true) {
Track.asyncTrackChapter(mangaId)
Track.asyncTrackChapter(setOf(mangaId))
}
}
@@ -527,9 +527,9 @@ object Chapter {
transaction {
ChapterTable.select { condition }
.map { it[ChapterTable.manga].value }
.distinct()
.toSet()
}
mangaIds.forEach { Track.asyncTrackChapter(it) }
Track.asyncTrackChapter(mangaIds)
}
}