Skip to content

Commit

Permalink
fix: invalid serialization of CheckHealthError
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus committed Jan 2, 2025
1 parent b08b728 commit d88d994
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/service/src/routes/health.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl IntoResponse for CheckHealthError {
CheckHealthError::RequestFailed => StatusCode::BAD_GATEWAY,
};
let body = serde_json::json!({
"error": self.to_string(),
"errors": [self.to_string()],
});
(status, Json(body)).into_response()
}
Expand Down
2 changes: 1 addition & 1 deletion docs/Queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ curl http://localhost:7600/subgraphs/health/QmacQnSgia4iDPWHpeY6aWxesRFdb8o5DKZU

```json
{
"error": "Deployment not found"
"errors": ["Deployment not found"]
}
```

Expand Down

0 comments on commit d88d994

Please sign in to comment.