fix: restore match3d bad gateway helper after merge
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-05-11 11:35:59 +08:00
parent 6c1579a786
commit d23cf3807d

View File

@@ -1241,6 +1241,13 @@ fn map_match3d_work_summary_response(item: Match3DWorkProfileRecord) -> Match3DW
}
}
fn match3d_bad_gateway(message: impl Into<String>) -> 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),