fix: return error when trying to unregister unknown appservice id
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
51afde9e98
commit
2a48e562e6
2 changed files with 4 additions and 1 deletions
|
@ -143,7 +143,8 @@ impl Service {
|
|||
.registration_info
|
||||
.write()
|
||||
.await
|
||||
.remove(service_name);
|
||||
.remove(service_name)
|
||||
.ok_or_else(|| crate::Error::AdminCommand("Appservice not found"))?;
|
||||
|
||||
self.db.unregister_appservice(service_name)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue