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

Introduce ALREADY_APPLIED error code for duplicate partner access code usage #415

Conversation

mayank-sahai
Copy link
Contributor

Issue link / number:

#387

What changes did you make?

This commit introduces a new error code, ALREADY_APPLIED (along with the related test cases). This error will be returned when the access code has already been applied to the account.
Also handled the case when the access code is already used by another user. In this scenario, an ALREADY_IN_USE error will be returned.

Why did you make the changes?

To provide a more accurate error message for users who attempt to apply a partner access code that has already been used with their account or another user's account.

This commit introduces a new error code, ALREADY_APPLIED (along with the related test cases) to provide a more accurate error message for users who attempt to apply a partner access code that has already been used with their account.
@kyleecodes kyleecodes self-assigned this Apr 26, 2024
@kyleecodes
Copy link
Member

Thank you @mayank-sahai
The dev team is off until Monday and will review then.👏

Copy link
Contributor

@eleanorreem eleanorreem left a comment

Choose a reason for hiding this comment

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

Thanks so much for this contribution @mayank-sahai ⭐ All looks great to me 😄

@eleanorreem eleanorreem merged commit 3a40cc1 into chaynHQ:develop Apr 29, 2024
3 checks passed
@mayank-sahai
Copy link
Contributor Author

mayank-sahai commented Apr 29, 2024

@eleanorreem can you also please review my frontend MR and let me know if any change is required? thanks🙌

@eleanorreem
Copy link
Contributor

Absolutely ! Sorry i didn't see that PR either. We've set up better notifications now 🤦 I will do that today as well ⭐ Thats fab!

@mayank-sahai mayank-sahai deleted the mayank-sahai/already-applied-code-error branch May 8, 2024 07:17
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

3 participants