tuwunel_admin/query/short/short_event_id.rs
1use ruma::OwnedEventId;
2use tuwunel_core::Result;
3
4use crate::admin_command;
5
6#[admin_command]
7pub(super) async fn short_event_id(&self, event_id: OwnedEventId) -> Result {
8 let shortid = self
9 .services
10 .short
11 .get_shorteventid(&event_id)
12 .await?;
13
14 write!(self, "{shortid:#?}").await
15}