From e02fa2115f3d6f183f602a51451abdca885537be Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 2 Jan 2021 16:24:28 +0600 Subject: [PATCH] update dependencies --- gradle.properties | 8 ++++---- .../core/publishing/exposed/ExposedPublishedPostsRepo.kt | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gradle.properties b/gradle.properties index ffcbb98d..e78c1a28 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,19 +7,19 @@ android.useAndroidX=true android.enableJetifier=true org.gradle.jvmargs=-Xmx2048m -kotlin_version=1.4.20 +kotlin_version=1.4.21 kotlin_coroutines_version=1.4.2 kotlin_serialisation_core_version=1.0.1 kotlin_exposed_version=0.28.1 -ktor_version=1.4.3 -klockVersion=2.0.0 +ktor_version=1.5.0 +klockVersion=2.0.3 uuidVersion=0.2.3 exposed_version=0.28.1 test_sqlite_version=3.32.3.2 -microutils_version=0.4.9 +microutils_version=0.4.15 javax_activation_version=1.1.1 diff --git a/publishing/exposed/src/jvmMain/kotlin/dev/inmo/postssystem/core/publishing/exposed/ExposedPublishedPostsRepo.kt b/publishing/exposed/src/jvmMain/kotlin/dev/inmo/postssystem/core/publishing/exposed/ExposedPublishedPostsRepo.kt index 96792d79..212d4875 100644 --- a/publishing/exposed/src/jvmMain/kotlin/dev/inmo/postssystem/core/publishing/exposed/ExposedPublishedPostsRepo.kt +++ b/publishing/exposed/src/jvmMain/kotlin/dev/inmo/postssystem/core/publishing/exposed/ExposedPublishedPostsRepo.kt @@ -41,14 +41,14 @@ class ExposedPublishedPostsRepo( override fun InsertStatement.asObject(value: RegisteredPost): PublishedPost = PublishedPost( get(idColumn), value, - launchSynchronously(scope) { value.content.mapNotNull { contentRepo.getById(it) } }, + scope.launchSynchronously { value.content.mapNotNull { contentRepo.getById(it) } }, get(dateTimeColumn) ) override val selectById: SqlExpressionBuilder.(PublishedPostId) -> Op = { idColumn.eq(it) } override val ResultRow.asObject: PublishedPost get() { - val (post, content) = launchSynchronously(scope) { + val (post, content) = scope.launchSynchronously { val post = requireNotNull(postsRepo.getPostById(get(postIdColumn))) {"Post with id \"${get(postIdColumn)}\" not found" } post to post.content.mapNotNull { contentRepo.getById(it) } }