From 4024b040e0e2e42df08838796c9b21ec21fb384d Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 5 Dec 2022 18:12:45 +0600 Subject: [PATCH] update dependencies --- gradle/libs.versions.toml | 14 +++++++------- .../src/jvmMain/kotlin/exposed/ExposedPostsRepo.kt | 4 +++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 8dbd3e7..8c2311b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,15 +1,15 @@ [versions] -kotlin = "1.7.21" +kotlin = "1.7.22" kotlin-serialization = "1.4.1" -plagubot = "3.1.4" -tgbotapi = "4.1.3" -microutils = "0.14.4" -kslog = "0.5.3" +plagubot = "3.2.0" +tgbotapi = "4.2.0" +microutils = "0.15.0" +kslog = "0.5.4" krontab = "0.8.3" -tgbotapi-libraries = "0.6.4" -plagubot-plugins = "0.6.3" +tgbotapi-libraries = "0.6.5" +plagubot-plugins = "0.6.4" dokka = "1.7.20" diff --git a/posts/src/jvmMain/kotlin/exposed/ExposedPostsRepo.kt b/posts/src/jvmMain/kotlin/exposed/ExposedPostsRepo.kt index 8d7ef0c..45e614e 100644 --- a/posts/src/jvmMain/kotlin/exposed/ExposedPostsRepo.kt +++ b/posts/src/jvmMain/kotlin/exposed/ExposedPostsRepo.kt @@ -38,9 +38,11 @@ class ExposedPostsRepo( override val selectById: ISqlExpressionBuilder.(PostId) -> Op = { idColumn.eq(it.string) } override val selectByIds: ISqlExpressionBuilder.(List) -> Op = { idColumn.inList(it.map { it.string }) } + override val ResultRow.asId: PostId + get() = PostId(get(idColumn)) override val ResultRow.asObject: RegisteredPost get() { - val id = PostId(get(idColumn)) + val id = asId return RegisteredPost( id, DateTime(get(createdColumn)),