Skip to content

Conversation

@rlarkin212
Copy link
Member

fixes #79

@rlarkin212 rlarkin212 requested a review from Dragon1320 August 2, 2020 14:37
@Dragon1320 Dragon1320 linked an issue Aug 8, 2020 that may be closed by this pull request
Copy link
Member

@Dragon1320 Dragon1320 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats here looks fine, but ik theres a lot of input validation in the search route that i do that probably throws 500s, just make that throw 400s instead if its a user input issue, but obviously keep it as 500 if its a genuine issue.

@rlarkin212 rlarkin212 requested a review from Dragon1320 August 24, 2020 18:21
Copy link
Member

@Dragon1320 Dragon1320 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the input validation i referred to in the last review is specific to the search route, basically im throwing a lot of errors in the db service, this causes them all to be 500s as the controller doesnt know any better, so either move the validation that im doing in the service to the controller or find a way to distinguish between errors thrown in the service that should be 400s and 500s

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.

4 participants