update dependencies

This commit is contained in:
InsanusMokrassar 2021-01-02 16:24:28 +06:00
parent 2b0fccefdc
commit e02fa2115f
2 changed files with 6 additions and 6 deletions

View File

@ -7,19 +7,19 @@ android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
org.gradle.jvmargs=-Xmx2048m org.gradle.jvmargs=-Xmx2048m
kotlin_version=1.4.20 kotlin_version=1.4.21
kotlin_coroutines_version=1.4.2 kotlin_coroutines_version=1.4.2
kotlin_serialisation_core_version=1.0.1 kotlin_serialisation_core_version=1.0.1
kotlin_exposed_version=0.28.1 kotlin_exposed_version=0.28.1
ktor_version=1.4.3 ktor_version=1.5.0
klockVersion=2.0.0 klockVersion=2.0.3
uuidVersion=0.2.3 uuidVersion=0.2.3
exposed_version=0.28.1 exposed_version=0.28.1
test_sqlite_version=3.32.3.2 test_sqlite_version=3.32.3.2
microutils_version=0.4.9 microutils_version=0.4.15
javax_activation_version=1.1.1 javax_activation_version=1.1.1

View File

@ -41,14 +41,14 @@ class ExposedPublishedPostsRepo(
override fun InsertStatement<Number>.asObject(value: RegisteredPost): PublishedPost = PublishedPost( override fun InsertStatement<Number>.asObject(value: RegisteredPost): PublishedPost = PublishedPost(
get(idColumn), get(idColumn),
value, value,
launchSynchronously(scope) { value.content.mapNotNull { contentRepo.getById(it) } }, scope.launchSynchronously { value.content.mapNotNull { contentRepo.getById(it) } },
get(dateTimeColumn) get(dateTimeColumn)
) )
override val selectById: SqlExpressionBuilder.(PublishedPostId) -> Op<Boolean> = { idColumn.eq(it) } override val selectById: SqlExpressionBuilder.(PublishedPostId) -> Op<Boolean> = { idColumn.eq(it) }
override val ResultRow.asObject: PublishedPost override val ResultRow.asObject: PublishedPost
get() { 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" } val post = requireNotNull(postsRepo.getPostById(get(postIdColumn))) {"Post with id \"${get(postIdColumn)}\" not found" }
post to post.content.mapNotNull { contentRepo.getById(it) } post to post.content.mapNotNull { contentRepo.getById(it) }
} }