refactor(router): add api_version and make profile_id mandatory in mca v2 (#5602)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sai Harsha Vardhan
2024-08-14 20:49:26 +05:30
committed by GitHub
parent 19a9180925
commit 56791c2743
25 changed files with 108 additions and 130 deletions

View File

@ -413,13 +413,13 @@ pub async fn validate_connectors_in_routing_config(
})?;
let name_mca_id_set = all_mcas
.iter()
.filter(|mca| mca.profile_id.as_deref() == Some(profile_id))
.filter(|mca| mca.profile_id == profile_id)
.map(|mca| (&mca.connector_name, mca.get_id()))
.collect::<FxHashSet<_>>();
let name_set = all_mcas
.iter()
.filter(|mca| mca.profile_id.as_deref() == Some(profile_id))
.filter(|mca| mca.profile_id == profile_id)
.map(|mca| &mca.connector_name)
.collect::<FxHashSet<_>>();