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

fix(queries.Register): reward inviter after checking email availability #36

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

AstatineAi
Copy link
Contributor

Fixing business logic and error handling in queries.Register.

Problems with previous versions: the part that adds 1 yuan reward to the invitee is done before checking for duplicate emails, and can be repeated by using the registered user's email & legit invite code to get the reward over and over again.

@AstatineAi AstatineAi requested a review from Prince213 May 29, 2024 15:11
Copy link
Contributor

@Prince213 Prince213 left a comment

Choose a reason for hiding this comment

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

LGTM

@Prince213 Prince213 merged commit e1bfe33 into master Jun 7, 2024
1 check passed
@Prince213 Prince213 deleted the fix-register branch June 7, 2024 12:16
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.

None yet

2 participants