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

Bug: UserID 0 Has All Videos #23

Open
horahoradev opened this issue May 8, 2022 · 1 comment
Open

Bug: UserID 0 Has All Videos #23

horahoradev opened this issue May 8, 2022 · 1 comment

Comments

@horahoradev
Copy link
Owner

This is a fundamental design issue from how I've handled user queries. If the userID is 0, it won't be registered as a user query, and won't query for that user's videos. Not sure what I'll need to do here.

@GabenGar
Copy link
Contributor

Just validate the endpoint to reject non-positive id values. That will fix the issue at hand but the bigger question is why do you even have IDs started with 0 in the first place? Pretty sure all incremental IDs start with 1 in postgresql and you have to spend extra effort for a different behaviour.

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

No branches or pull requests

2 participants