remove dead code

This commit is contained in:
Felix Ableitner 2024-01-26 10:57:26 +01:00
parent 25fb67a921
commit b455cdc787

View File

@ -243,19 +243,6 @@ impl CommunityFollower {
.get_result(conn)
.await
}
pub async fn is_follower(
pool: &mut DbPool<'_>,
person_id: PersonId,
community_id: CommunityId,
) -> Result<bool, Error> {
use crate::schema::community_follower::dsl::community_follower;
let conn = &mut get_conn(pool).await?;
select(exists(community_follower.find((person_id, community_id))))
.get_result(conn)
.await
}
}
impl Queryable<sql_types::Nullable<sql_types::Bool>, Pg> for SubscribedType {