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

User Points Not Updating in Database #586

Open
lgmohale opened this issue Oct 10, 2024 · 3 comments
Open

User Points Not Updating in Database #586

lgmohale opened this issue Oct 10, 2024 · 3 comments
Labels

Comments

@lgmohale
Copy link

Hi @chriskapp, I hope you are well.

I'm attempting to update user points through the API backend at https:{base_url}backend/user/{user_id}. While I receive a success message, the database isn’t reflecting the changes. Other fields appear to be updating correctly. Could you please assist me with this issue?

Thank you!

@Lossme8
Copy link

Lossme8 commented Oct 11, 2024

@chriskapp, I would greatly appreciate any pointers you have about the above issue, as I am also facing the same blocker.

@chriskapp
Copy link
Member

Hi @lgmohale and @Lossme8, this is indeed currently not possible, you can only increase the points of a user by purchasing a plan, then the points of the plan are credited to the user account. Initially this was a design decision to protect a user account from manipulation, so that it is not possible to remove purchased points. But in general it would be easy possible to enable this at the user update endpoint. Could you explain a little bit your user-case why you need the option to change the points of a user?

@lgmohale
Copy link
Author

Hi @chriskapp Thank you for your explanation regarding the point system.
Our operations are currently prepaid, and we utilize a third-party service for collecting payments. We would like the ability to update a user's points upon successful payment requests using the endpoint. This flexibility would allow us to streamline our processes and enhance the user experience by immediately reflecting their purchases in their accounts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants