From d23cf3807de2ee69ce5e6427693f451f5aca9754 Mon Sep 17 00:00:00 2001 From: kdletters Date: Mon, 11 May 2026 11:35:59 +0800 Subject: [PATCH] fix: restore match3d bad gateway helper after merge --- server-rs/crates/api-server/src/match3d.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server-rs/crates/api-server/src/match3d.rs b/server-rs/crates/api-server/src/match3d.rs index 4b643b41..7f6f3c7a 100644 --- a/server-rs/crates/api-server/src/match3d.rs +++ b/server-rs/crates/api-server/src/match3d.rs @@ -1241,6 +1241,13 @@ fn map_match3d_work_summary_response(item: Match3DWorkProfileRecord) -> Match3DW } } +fn match3d_bad_gateway(message: impl Into) -> AppError { + AppError::from_status(StatusCode::BAD_GATEWAY).with_details(json!({ + "provider": MATCH3D_AGENT_PROVIDER, + "message": message.into(), + })) +} + fn map_match3d_work_profile_response(item: Match3DWorkProfileRecord) -> Match3DWorkProfileResponse { Match3DWorkProfileResponse { summary: map_match3d_work_summary_response(item),