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: added the validation for the delete wallet and first check on the record for delete wallet #802

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

KulkarniShashank
Copy link
Contributor

what

Added validation for the delete wallet functionality and performed an initial check on the record for deleting the wallet.

why

To ensure that the wallet deletion process includes necessary validations and checks, thereby maintaining data integrity and preventing errors during the deletion process.

how

  • Added a validation step to check if the wallet exists before attempting deletion.
  • Updated the deleteWallet function to include a check for the wallet record.
  • Wrapped the delete operations in a Prisma transaction to ensure rollback in case of errors.

…e record for delete wallet

Signed-off-by: KulkarniShashank <[email protected]>
Copy link

sonarcloud bot commented Jun 21, 2024

@KulkarniShashank KulkarniShashank merged commit b393db6 into develop Jun 21, 2024
2 checks passed
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.

2 participants