[REFACTOR] remove unnecessary function from Refunds Validate Flow #1521
Labels
C-bug
Category: Bug
good first issue
Good for newcomers
hacktoberfest
Issues that are up for grabs for Hacktoberfest participants
Bug Description
Remove this function
validate_uniqueness_of_refund_id_against_merchant_id
.Not required as (refund_id, merchant_id ) unique btree, just insert. if insert fails it is not valid .
Expected Behavior
Not required as (refund_id, merchant_id ) unique btree, just insert. if insert fails it is not valid .
Actual Behavior
Does extra DB calls
Steps To Reproduce
Provide an unambiguous set of steps to reproduce this bug. Include code or configuration to reproduce, if relevant.
Context For The Bug
No response
Environment
Are you using hyperswitch hosted version? Yes/No
If yes, please provide the value of the
x-request-id
response header for helping us debug your issue.If not (or if building/running locally), please provide the following details:
rustc --version
): ``cargo r --features vergen -- --version
): ``Have you spent some time to check if this bug has been raised before?
Have you read the Contributing Guidelines?
Are you willing to submit a PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: