]> Untitled Git - lemmy.git/blobdiff - crates/api/src/local_user/list_banned.rs
Make functions work with both connection and pool (#3420)
[lemmy.git] / crates / api / src / local_user / list_banned.rs
index 5e2c027ba00902696921d3c4b9d45e970789f5d2..9391a4bbf914472c55895aac40aea76ca95a2aec 100644 (file)
@@ -19,7 +19,7 @@ impl Perform for GetBannedPersons {
     // Make sure user is an admin
     is_admin(&local_user_view)?;
 
-    let banned = PersonView::banned(context.pool()).await?;
+    let banned = PersonView::banned(&mut context.pool()).await?;
 
     Ok(Self::Response { banned })
   }