Skip to content

Commit

Permalink
conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
racnan committed Aug 22, 2024
1 parent 6325db0 commit 9c2d8c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/router/src/core/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2585,14 +2585,14 @@ pub async fn list_orgs_for_user(
.into_iter()
.filter_map(|user_role| {
(user_role.status == UserStatus::Active)
.then(|| user_role.org_id)
.then_some( user_role.org_id)
.flatten()
})
.collect::<HashSet<_>>();

let resp = futures::future::try_join_all(
orgs.iter()
.map(|org_id| state.store.find_organization_by_org_id(&org_id)),
.map(|org_id| state.store.find_organization_by_org_id(org_id)),
)
.await
.change_context(UserErrors::InternalServerError)?
Expand Down Expand Up @@ -2651,7 +2651,7 @@ pub async fn list_merchants_for_user_in_org(
.into_iter()
.filter_map(|user_role| {
(user_role.status == UserStatus::Active)
.then(|| user_role.merchant_id)
.then_some( user_role.merchant_id)
.flatten()
})
.collect::<HashSet<_>>()
Expand Down Expand Up @@ -2734,7 +2734,7 @@ pub async fn list_profiles_for_user_in_org_and_merchant_account(
.into_iter()
.filter_map(|user_role| {
(user_role.status == UserStatus::Active)
.then(|| user_role.profile_id)
.then_some( user_role.profile_id)
.flatten()
})
.collect::<HashSet<_>>();
Expand Down

0 comments on commit 9c2d8c8

Please # to comment.