// Fetch the community mods
let community_id = data.community_id;
let community_mods =
- CommunityModeratorView::for_community(context.pool(), community_id).await?;
+ CommunityModeratorView::for_community(&mut context.pool(), community_id).await?;
// Make sure deleter is the top mod
is_top_mod(&local_user_view, &community_mods)?;
let community_id = data.community_id;
let deleted = data.deleted;
Community::update(
- context.pool(),
+ &mut context.pool(),
community_id,
&CommunityUpdateForm::builder()
.deleted(Some(deleted))