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

bank-webhook , updating balance issue for new user having zero balance #60

Open
Akshat-Kumar-work opened this issue Apr 18, 2024 · 1 comment

Comments

@Akshat-Kumar-work
Copy link

When the new user having zero balance tried to add balance, after the on-ramp-transaction success, the balance will not addedd to the user balance table, because we are only updating the balance , it will provide no record found error, hence we have to check if the balance array length is zero then we dont want to update the balance we want to create the balance record.
bug

@amarnath666
Copy link

When creating new user in authOptions by prisma.user.create we can also add Balance : {create: { amount: 0, locked: 0 } }this also will work.

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

No branches or pull requests

2 participants