use crate::bootstrap::state::AppState;
use shared::{Event, Response as RpResponse};
pub async fn handle(state: AppState, order: Vec<String>) -> RpResponse {
state.deploy_queue.reorder(&order);
state.bus.publish(Event::DeployQueueChanged);
RpResponse::Ok
}