create better structure for admin query commands

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-20 14:44:31 -04:00 committed by June
parent b93215d7f2
commit 2de4eea688
9 changed files with 225 additions and 201 deletions

View file

@ -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)