Fix get comments children

This commit is contained in:
2020-01-30 17:30:11 +01:00
parent 5161dca1d5
commit 77658c5f6b
4 changed files with 23 additions and 4 deletions

View File

@@ -104,6 +104,20 @@ class CommentGeneric(requester: Requester) : Comment<TargetRef>(requester) {
)
}
}
override fun findByParent(
parentId: UUID,
page: Int,
limit: Int
): Paginated<CommentEntity<TargetRef>> {
return requester.run {
getFunction("find_comments_by_parent")
.select(
page, limit,
"parent_id" to parentId
)
}
}
}
class CommentArticle(requester: Requester) : Comment<ArticleRef>(requester) {