fix: restore match3d bad gateway helper after merge
Some checks failed
CI / verify (push) Has been cancelled
Some checks failed
CI / verify (push) Has been cancelled
This commit is contained in:
@@ -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 {
|
fn map_match3d_work_profile_response(item: Match3DWorkProfileRecord) -> Match3DWorkProfileResponse {
|
||||||
Match3DWorkProfileResponse {
|
Match3DWorkProfileResponse {
|
||||||
summary: map_match3d_work_summary_response(item),
|
summary: map_match3d_work_summary_response(item),
|
||||||
|
|||||||
Reference in New Issue
Block a user