mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 05:26:59 +00:00
fix: remove unnecessary mut
This commit is contained in:
@@ -22,8 +22,8 @@ pub async fn admin_channel_wipe(
|
||||
}));
|
||||
}
|
||||
|
||||
let mut channel = channel_id.as_channel(db).await?;
|
||||
|
||||
let channel = channel_id.as_channel(db).await?;
|
||||
|
||||
channel.wipe(db).await?;
|
||||
|
||||
create_audit_action(
|
||||
@@ -35,6 +35,6 @@ pub async fn admin_channel_wipe(
|
||||
None,
|
||||
)
|
||||
.await?;
|
||||
|
||||
|
||||
Ok(EmptyResponse)
|
||||
}
|
||||
Reference in New Issue
Block a user