Cargo lock update and a few doc additions
This commit is contained in:
parent
fe795d38ea
commit
672bf4f473
4 changed files with 14 additions and 17 deletions
|
@ -56,11 +56,7 @@ pub fn get_global_account_data_route(
|
|||
|
||||
let data = db
|
||||
.account_data
|
||||
.get::<Raw<ruma::events::AnyBasicEvent>>(
|
||||
None,
|
||||
sender_id,
|
||||
EventType::try_from(&body.event_type).expect("EventType::try_from can never fail"),
|
||||
)?
|
||||
.get::<Raw<ruma::events::AnyBasicEvent>>(None, sender_id, body.event_type.clone().into())?
|
||||
.ok_or(Error::BadRequest(ErrorKind::NotFound, "Data not found."))?;
|
||||
|
||||
Ok(get_global_account_data::Response { account_data: data }.into())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue