-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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(router): merchant account delete does not delete the merchant_key_store #2367
fix(router): merchant account delete does not delete the merchant_key_store #2367
Conversation
.delete_merchant_key_store_by_merchant_id(&merchant_id) | ||
.await | ||
.to_not_found_response(errors::ApiErrorResponse::MerchantAccountNotFound)?; | ||
is_deleted = is_merchant_account_deleted && is_merchant_key_store_deleted; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realised that this could be simplified to is_deleted = is_merchant_key_store_deleted;
, but I prefer to leave explicit that is_deleted
depends on both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Thanks for the PR, @dalprahcd!
Type of Change
Description
Closes #2154 by calling
delete_merchant_key_store_by_merchant_id
atmerchant_account_delete
Additional Changes
Motivation and Context
How did you test it?
Checklist
cargo +nightly fmt --all
cargo clippy