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

Restrict the number of concurrent matches that a user is allowed to have. #5

Open
WilliamDormer opened this issue Aug 3, 2022 · 0 comments
Labels
good first issue Good for newcomers

Comments

@WilliamDormer
Copy link
Contributor

In the swiping endpoint (may not be uploaded to main yet, if not look at the miniointegration), when the user wants like like, or dislike another person, and they already have the maximum number of concurrent matches, it should return and send an error to the frontend. The max number of concurrent matches should be stored as a global variable in the nodejs application. You can determine how many concurrent matches the person has by querying the swipes database table and searching for where the UUID of the sender is the person hitting the endpoint, and counting the number that is in the match state (i forget which integer represents the match, but it's in the code). A good starting number of concurrent matches would be 5, but it should be easy to change with one line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Development

No branches or pull requests

1 participant