]> Untitled Git - lemmy.git/blobdiff - crates/api/src/local_user/notifications/list_mentions.rs
Make functions work with both connection and pool (#3420)
[lemmy.git] / crates / api / src / local_user / notifications / list_mentions.rs
index 4c8d2cf555fc4805cdb44d300eb9de3528ce9609..1b2d3c7b646f946ab92c67a57bd084b82eb031e5 100644 (file)
@@ -28,7 +28,7 @@ impl Perform for GetPersonMentions {
     let show_bot_accounts = Some(local_user_view.local_user.show_bot_accounts);
 
     let mentions = PersonMentionQuery::builder()
-      .pool(context.pool())
+      .pool(&mut context.pool())
       .recipient_id(person_id)
       .my_person_id(person_id)
       .sort(sort)