X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapi_crud%2Fsrc%2Fcommunity%2Fremove.rs;h=2bcd3d8572003795e5a18c4ff4f5ecd9a768ded4;hb=1d38aad9d3d51ef606074d5b49a8030c49dd0e9e;hp=fd011c6c26bca78721eecd72b51fcdf73d685143;hpb=73492af4b09448684ffde3d55454434ec3ed490b;p=lemmy.git diff --git a/crates/api_crud/src/community/remove.rs b/crates/api_crud/src/community/remove.rs index fd011c6c..2bcd3d85 100644 --- a/crates/api_crud/src/community/remove.rs +++ b/crates/api_crud/src/community/remove.rs @@ -34,7 +34,7 @@ impl PerformCrud for RemoveCommunity { let community_id = data.community_id; let removed = data.removed; Community::update( - context.pool(), + &mut context.pool(), community_id, &CommunityUpdateForm::builder() .removed(Some(removed)) @@ -52,7 +52,7 @@ impl PerformCrud for RemoveCommunity { reason: data.reason.clone(), expires, }; - ModRemoveCommunity::create(context.pool(), &form).await?; + ModRemoveCommunity::create(&mut context.pool(), &form).await?; build_community_response(context, local_user_view, community_id).await }