update dependencies
This commit is contained in:
parent
2b0fccefdc
commit
e02fa2115f
@ -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
|
||||
|
||||
|
@ -41,14 +41,14 @@ class ExposedPublishedPostsRepo(
|
||||
override fun InsertStatement<Number>.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<Boolean> = { 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) }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user