This commit is contained in:
müde 2026-05-15 00:14:49 +02:00
parent a59fe081f4
commit b20055293e
2 changed files with 3 additions and 6 deletions

View file

@ -81,10 +81,7 @@ async fn messages_stream(
Sse::new(stream).keep_alive(KeepAlive::default())
}
async fn post_approve(
State(state): State<AppState>,
AxumPath(id): AxumPath<i64>,
) -> Response {
async fn post_approve(State(state): State<AppState>, AxumPath(id): AxumPath<i64>) -> Response {
match actions::approve(&state.coord, id).await {
Ok(()) => Redirect::to("/").into_response(),
Err(e) => error_response(&format!("approve {id} failed: {e:#}")),