fix: return none instead of err when payment method data is not found for bank debit during listing (#2967)

This commit is contained in:
Chethan Rao
2023-11-23 20:05:33 +05:30
committed by GitHub
parent b2f7dd1392
commit 5cc829a11f

View File

@ -2459,8 +2459,7 @@ async fn get_bank_account_connector_details(
}))
}
},
None => Err(errors::ApiErrorResponse::InternalServerError.into())
.attach_printable("Unable to fetch payment method data"),
None => Ok(None),
}
}