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

Library middleware positive check #3501

Closed

Conversation

nichwall
Copy link
Contributor

This PR fixes #3499.

If one of the pagination values is undefined, it now defaults to 0 to prevent a crash in Sequelize.

@advplyr
Copy link
Owner

advplyr commented Oct 11, 2024

I don't think we want to put the limit and page query string on every endpoint. I fixed this by
a) replacing the bad API call on the podcast add page
b) updating the 3 paginated API endpoints that could hit this by having them fall back to 0.

When we re-work the API we may want to include a "paginated" middleware or use one of those libraries that handles validation for us.

@advplyr advplyr closed this Oct 11, 2024
@nichwall nichwall deleted the library_middleware_positive_check branch October 12, 2024 05:21
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.

[Bug]: Unknown column NaN when opening "Add" podcast page, crashes server
2 participants