From 36e6f7ec78fdddb3a0427a0480fa2f689bed845f Mon Sep 17 00:00:00 2001 From: dullbananas Date: Fri, 21 Jun 2024 10:44:55 -0700 Subject: [PATCH] Fix order in `CommunityModeratorView::get_community_first_mods` (#4859) * Fix order in `CommunityModeratorView::get_community_first_mods` * Update community_moderator_view.rs * Update community_moderator_view.rs --- crates/db_views_actor/src/community_moderator_view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/db_views_actor/src/community_moderator_view.rs b/crates/db_views_actor/src/community_moderator_view.rs index 808fc0340..f58e3fee0 100644 --- a/crates/db_views_actor/src/community_moderator_view.rs +++ b/crates/db_views_actor/src/community_moderator_view.rs @@ -90,7 +90,7 @@ impl CommunityModeratorView { .distinct_on(community_moderator::community_id) .order_by(( community_moderator::community_id, - community_moderator::person_id, + community_moderator::published, )) .load::(conn) .await