mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-29 15:51:20 +00:00
Fix order in CommunityModeratorView::get_community_first_mods
This commit is contained in:
parent
6d8d23130d
commit
37fcfc6138
1 changed files with 1 additions and 4 deletions
|
@ -88,10 +88,7 @@ impl CommunityModeratorView {
|
|||
// A hacky workaround instead of group_bys
|
||||
// https://stackoverflow.com/questions/24042359/how-to-join-only-one-row-in-joined-table-with-postgres
|
||||
.distinct_on(community_moderator::community_id)
|
||||
.order_by((
|
||||
community_moderator::community_id,
|
||||
community_moderator::person_id,
|
||||
))
|
||||
.order_by(community_moderator::published)
|
||||
.load::<CommunityModeratorView>(conn)
|
||||
.await
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue