update dependencies
This commit is contained in:
gradle.properties
publishing/exposed/src/jvmMain/kotlin/dev/inmo/postssystem/core/publishing/exposed
@ -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) }
|
||||
}
|
||||
|
Reference in New Issue
Block a user