|
|
@ -600,7 +600,7 @@ mod tests {
|
|
|
|
|
|
|
|
|
|
|
|
let read_comment_views_no_person = CommentQuery::builder()
|
|
|
|
let read_comment_views_no_person = CommentQuery::builder()
|
|
|
|
.pool(pool)
|
|
|
|
.pool(pool)
|
|
|
|
.sort(Some(CommentSortType::Hot))
|
|
|
|
.sort(Some(CommentSortType::Old))
|
|
|
|
.post_id(Some(data.inserted_post.id))
|
|
|
|
.post_id(Some(data.inserted_post.id))
|
|
|
|
.build()
|
|
|
|
.build()
|
|
|
|
.list()
|
|
|
|
.list()
|
|
|
@ -614,7 +614,7 @@ mod tests {
|
|
|
|
|
|
|
|
|
|
|
|
let read_comment_views_with_person = CommentQuery::builder()
|
|
|
|
let read_comment_views_with_person = CommentQuery::builder()
|
|
|
|
.pool(pool)
|
|
|
|
.pool(pool)
|
|
|
|
.sort(Some(CommentSortType::Hot))
|
|
|
|
.sort(Some(CommentSortType::Old))
|
|
|
|
.post_id(Some(data.inserted_post.id))
|
|
|
|
.post_id(Some(data.inserted_post.id))
|
|
|
|
.local_user(Some(&data.inserted_local_user))
|
|
|
|
.local_user(Some(&data.inserted_local_user))
|
|
|
|
.build()
|
|
|
|
.build()
|
|
|
|