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

FSR-1043 - fix unhandled 500 errors on /rainfall-station endpoints #550

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

maxcbc
Copy link
Contributor

@maxcbc maxcbc commented Sep 26, 2023

NOTE: This PR should be tested/released in tandem with DEFRA/flood-service#150

What

  • Update getRainfallStation() to expect object from flood-service rather than an array
  • Update consumers of getRainfallStation() to expect object rather than an array
  • Update routes depending on getRainfallStation() to respond 404 if no object is returned from the function

@maxcbc maxcbc changed the title fix/FSR 1043 FSR 1043 - fix unhandled 500 errors on /rainfall-station endpoints Sep 26, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@maxcbc maxcbc changed the title FSR 1043 - fix unhandled 500 errors on /rainfall-station endpoints FSR-1043 - fix unhandled 500 errors on /rainfall-station endpoints Sep 26, 2023
@LeeGordon83 LeeGordon83 merged commit e9e408f into development Sep 26, 2023
LeeGordon83 added a commit that referenced this pull request Sep 26, 2023
@nikiwycherley nikiwycherley deleted the fix/FSR-1043 branch November 27, 2023 09:19
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.

2 participants