fix: Don't show successful media deletion as an error
Fixes !admin media delete --mxc <url> responding with an error message when the media was deleted successfully.
This commit is contained in:
parent
763d9b3de8
commit
a43dee1728
1 changed files with 3 additions and 1 deletions
|
|
@ -29,7 +29,9 @@ pub(super) async fn delete(
|
|||
.delete(&mxc.as_str().try_into()?)
|
||||
.await?;
|
||||
|
||||
return Err!("Deleted the MXC from our database and on our filesystem.",);
|
||||
return self
|
||||
.write_str("Deleted the MXC from our database and on our filesystem.")
|
||||
.await;
|
||||
}
|
||||
|
||||
if let Some(event_id) = event_id {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue