create better structure for admin query commands
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
b93215d7f2
commit
2de4eea688
9 changed files with 225 additions and 201 deletions
|
@ -30,7 +30,7 @@ use super::pdu::PduBuilder;
|
|||
use crate::{
|
||||
service::admin::{
|
||||
appservice::AppserviceCommand, debug::DebugCommand, federation::FederationCommand, media::MediaCommand,
|
||||
query::QueryCommand, room::RoomCommand, server::ServerCommand, user::UserCommand,
|
||||
query::query::QueryCommand, room::RoomCommand, server::ServerCommand, user::UserCommand,
|
||||
},
|
||||
services, Error, Result,
|
||||
};
|
||||
|
@ -284,7 +284,7 @@ impl Service {
|
|||
AdminCommand::Federation(command) => federation::process(command, body).await?,
|
||||
AdminCommand::Server(command) => server::process(command, body).await?,
|
||||
AdminCommand::Debug(command) => debug::process(command, body).await?,
|
||||
AdminCommand::Query(command) => query::process(command, body).await?,
|
||||
AdminCommand::Query(command) => query::query::process(command, body).await?,
|
||||
};
|
||||
|
||||
Ok(reply_message_content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue