mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-09 09:52:10 +00:00
parent
2ac6e1a463
commit
6b1894faf0
|
@ -28,6 +28,7 @@ impl CommunityFollowerView {
|
|||
Person::safe_columns_tuple(),
|
||||
))
|
||||
.filter(community_follower::community_id.eq(community_id))
|
||||
.order_by(community::title)
|
||||
.load::<CommunityFollowerViewTuple>(conn)?;
|
||||
|
||||
Ok(Self::from_tuple_to_vec(res))
|
||||
|
@ -42,6 +43,7 @@ impl CommunityFollowerView {
|
|||
Person::safe_columns_tuple(),
|
||||
))
|
||||
.filter(community_follower::person_id.eq(person_id))
|
||||
.order_by(community::title)
|
||||
.load::<CommunityFollowerViewTuple>(conn)?;
|
||||
|
||||
Ok(Self::from_tuple_to_vec(res))
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
drop index idx_community_title;
|
|
@ -0,0 +1 @@
|
|||
create index idx_community_title on community(title);
|
Loading…
Reference in a new issue