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.
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
deleteWallet
function to include a check for the wallet record.