mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 12:21:18 +00:00
Update community_moderator_view.rs
This commit is contained in:
parent
84142f031c
commit
85cd62dde2
1 changed files with 2 additions and 2 deletions
|
@ -89,8 +89,8 @@ impl CommunityModeratorView {
|
||||||
// https://stackoverflow.com/questions/24042359/how-to-join-only-one-row-in-joined-table-with-postgres
|
// https://stackoverflow.com/questions/24042359/how-to-join-only-one-row-in-joined-table-with-postgres
|
||||||
.distinct_on(community_moderator::community_id)
|
.distinct_on(community_moderator::community_id)
|
||||||
.order_by((
|
.order_by((
|
||||||
community_moderator::community_id,
|
community_moderator::community_id,
|
||||||
community_moderator::published,
|
community_moderator::published,
|
||||||
))
|
))
|
||||||
.load::<CommunityModeratorView>(conn)
|
.load::<CommunityModeratorView>(conn)
|
||||||
.await
|
.await
|
||||||
|
|
Loading…
Reference in a new issue