]> Untitled Git - lemmy.git/blobdiff - crates/routes/src/nodeinfo.rs
Make functions work with both connection and pool (#3420)
[lemmy.git] / crates / routes / src / nodeinfo.rs
index 124e1ea43c64b9ea857fc0ea32271041bd0adebf..ef654462276642f085e1c77beb9fb25cda1ad4d0 100644 (file)
@@ -29,7 +29,7 @@ async fn node_info_well_known(
 }
 
 async fn node_info(context: web::Data<LemmyContext>) -> Result<HttpResponse, Error> {
-  let site_view = SiteView::read_local(context.pool())
+  let site_view = SiteView::read_local(&mut context.pool())
     .await
     .map_err(|_| ErrorBadRequest(LemmyError::from(anyhow!("not_found"))))?;