mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-16 09:24:00 +00:00
Fixes wrong community moderator ordering. (#3495)
This commit is contained in:
parent
ce1ffebeb0
commit
ef11a6ca37
1 changed files with 3 additions and 2 deletions
|
@ -17,8 +17,9 @@ impl CommunityModeratorView {
|
||||||
let res = community_moderator::table
|
let res = community_moderator::table
|
||||||
.inner_join(community::table)
|
.inner_join(community::table)
|
||||||
.inner_join(person::table)
|
.inner_join(person::table)
|
||||||
.select((community::all_columns, person::all_columns))
|
|
||||||
.filter(community_moderator::community_id.eq(community_id))
|
.filter(community_moderator::community_id.eq(community_id))
|
||||||
|
.select((community::all_columns, person::all_columns))
|
||||||
|
.order_by(community_moderator::published)
|
||||||
.load::<CommunityModeratorViewTuple>(conn)
|
.load::<CommunityModeratorViewTuple>(conn)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
@ -30,10 +31,10 @@ impl CommunityModeratorView {
|
||||||
let res = community_moderator::table
|
let res = community_moderator::table
|
||||||
.inner_join(community::table)
|
.inner_join(community::table)
|
||||||
.inner_join(person::table)
|
.inner_join(person::table)
|
||||||
.select((community::all_columns, person::all_columns))
|
|
||||||
.filter(community_moderator::person_id.eq(person_id))
|
.filter(community_moderator::person_id.eq(person_id))
|
||||||
.filter(community::deleted.eq(false))
|
.filter(community::deleted.eq(false))
|
||||||
.filter(community::removed.eq(false))
|
.filter(community::removed.eq(false))
|
||||||
|
.select((community::all_columns, person::all_columns))
|
||||||
.load::<CommunityModeratorViewTuple>(conn)
|
.load::<CommunityModeratorViewTuple>(conn)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue