Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only return failure status code when results contains failures #246

Conversation

maartenpaauw
Copy link
Contributor

@maartenpaauw maartenpaauw commented Oct 10, 2024

When changing the health.json_results_failure_status code to a server error status code, it was incorrectly returned when there are no failing checks.

@oaattia
Copy link

oaattia commented Oct 30, 2024

I actually have the same issue. The "json_results_failure_status" code always returns that status, regardless of whether there is a failure or not.

@freekmurze freekmurze merged commit 2c23228 into spatie:main Dec 9, 2024
@freekmurze
Copy link
Member

Thanks!

@maartenpaauw maartenpaauw deleted the bugfix/only-return-failure-status-code-when-results-contains-failures branch December 9, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants