]> Untitled Git - lemmy.git/blobdiff - crates/db_views_actor/src/community_person_ban_view.rs
Make functions work with both connection and pool (#3420)
[lemmy.git] / crates / db_views_actor / src / community_person_ban_view.rs
index 35eacf0f72bcf0c1fe6ae6f7ccefb8256ef9d5ec..705b4bf7706082b61edbf3d68d7b0570dacdd85b 100644 (file)
@@ -10,7 +10,7 @@ use lemmy_db_schema::{
 
 impl CommunityPersonBanView {
   pub async fn get(
-    pool: &DbPool,
+    pool: &mut DbPool<'_>,
     from_person_id: PersonId,
     from_community_id: CommunityId,
   ) -> Result<Self, Error> {