fix(payment_methods): revert the filter for getting the mcas which are disabled (#4756)

This commit is contained in:
Amisha Prabhat
2024-05-24 15:10:31 +05:30
committed by GitHub
parent 55ccce6189
commit 9fb2a83014
2 changed files with 6 additions and 3 deletions

View File

@ -3700,7 +3700,12 @@ pub async fn get_mca_status(
.change_context(errors::ApiErrorResponse::MerchantConnectorAccountNotFound {
id: merchant_id.to_string(),
})?;
let mut mca_ids = HashSet::new();
let mcas = mcas
.into_iter()
.filter(|mca| mca.disabled == Some(true))
.collect::<Vec<_>>();
for mca in mcas {
mca_ids.insert(mca.merchant_connector_id);