Skip to main content

tuwunel_admin/query/users/
get_all_backups.rs

1use ruma::OwnedUserId;
2use tuwunel_core::Result;
3
4use crate::admin_command;
5
6#[admin_command]
7pub(super) async fn get_all_backups(&self, user_id: OwnedUserId, version: String) -> Result {
8	let query = self
9		.services
10		.key_backups
11		.get_all(&user_id, &version);
12
13	self.write_timed_query(query).await
14}