Fix Manga Meta, add Manga Meta test (#245)

* Fix Manga Meta, add Manga Meta test

* Tweak assertion strings
This commit is contained in:
Mitchell Syer
2021-11-07 18:38:22 -05:00
committed by GitHub
parent 3d7953d977
commit 420d14fc37
2 changed files with 62 additions and 1 deletions

View File

@@ -144,7 +144,7 @@ object Manga {
fun modifyMangaMeta(mangaId: Int, key: String, value: String) {
transaction {
val manga = MangaMetaTable.select { (MangaTable.id eq mangaId) }
val manga = MangaTable.select { MangaTable.id eq mangaId }
.first()[MangaTable.id]
val meta =
transaction { MangaMetaTable.select { (MangaMetaTable.ref eq manga) and (MangaMetaTable.key eq key) } }.firstOrNull()