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
Create accurate error code for users who are applying a code twice to their account #387
Comments
@eleanorreem would like to work on this. but I have few questions -
|
Thank you for your interest in contributing to Chayn! Please carefully read the CONTRIBUTING.md file and the README.md file for guidance. Let us know if you have any questions. Good luck! |
@mayank-sahai thank you for looking into this! I've assigned you the issue and pinged the devs to answer your question ASAP. |
Hey @mayank-sahai, super sorry for the slow response. Thanks so much for picking this up. I didn't see the notification for some reason! And I can see my issue was not clear enough. I will clarify. We have partners who have custom bloom experiences. In some case, this includes enhanced features such as therapy. A user can get the custom experience in multiple ways.
Hope that context is helpful. To respond to your exact questions:
My new suggestion would be to just put the check in PartnerAccessService.assignPartnerAccess. That should be the only place that that is relevant. Let me know if that makes sense and sorry for the long ramble. ⭐ |
No worries and thanks for the explanation. @eleanorreem So just to confirm my understanding we have the following cases -
If this is correct then I would say that your first suggestion was right and we should keep the condition in the let me know what you think. |
@mayank-sahai That all sounds correct to me! Thanks so much ⭐ |
Overview
We want to provide a more accurate error message for users who try and apply a code to their account twice. To do this, we need a better error message than ALREADY_IN_USE. We want a new error code ALREADY_APPLIED
Action Items
Resources/Instructions
The text was updated successfully, but these errors were encountered: