let res = community_moderator::table
.inner_join(community::table)
.inner_join(person::table)
- .select((community::all_columns, person::all_columns))
.filter(community_moderator::community_id.eq(community_id))
+ .select((community::all_columns, person::all_columns))
+ .order_by(community_moderator::published)
.load::<CommunityModeratorViewTuple>(conn)
.await?;
let res = community_moderator::table
.inner_join(community::table)
.inner_join(person::table)
- .select((community::all_columns, person::all_columns))
.filter(community_moderator::person_id.eq(person_id))
.filter(community::deleted.eq(false))
.filter(community::removed.eq(false))
+ .select((community::all_columns, person::all_columns))
.load::<CommunityModeratorViewTuple>(conn)
.await?;