]> Untitled Git - lemmy.git/blobdiff - crates/api/src/comment_report/list.rs
Make functions work with both connection and pool (#3420)
[lemmy.git] / crates / api / src / comment_report / list.rs
index d8a4221dbd1f1fa0f6937041403695e2c7908b31..baa1bf45fee3112de801814c1ba6ebec6562c348 100644 (file)
@@ -30,7 +30,7 @@ impl Perform for ListCommentReports {
     let page = data.page;
     let limit = data.limit;
     let comment_reports = CommentReportQuery::builder()
-      .pool(context.pool())
+      .pool(&mut context.pool())
       .my_person_id(person_id)
       .admin(admin)
       .community_id(community_id)