Skip to content

Commit d88d994

Browse files
committed
fix: invalid serialization of CheckHealthError
1 parent b08b728 commit d88d994

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/service/src/routes/health.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl IntoResponse for CheckHealthError {
3636
CheckHealthError::RequestFailed => StatusCode::BAD_GATEWAY,
3737
};
3838
let body = serde_json::json!({
39-
"error": self.to_string(),
39+
"errors": [self.to_string()],
4040
});
4141
(status, Json(body)).into_response()
4242
}

docs/Queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ curl http://localhost:7600/subgraphs/health/QmacQnSgia4iDPWHpeY6aWxesRFdb8o5DKZU
9898

9999
```json
100100
{
101-
"error": "Deployment not found"
101+
"errors": ["Deployment not found"]
102102
}
103103
```
104104

0 commit comments

Comments
 (0)