Skip to content

Commit 9c2d8c8

Browse files
committed
conflicts
1 parent 6325db0 commit 9c2d8c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/router/src/core/user.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2585,14 +2585,14 @@ pub async fn list_orgs_for_user(
25852585
.into_iter()
25862586
.filter_map(|user_role| {
25872587
(user_role.status == UserStatus::Active)
2588-
.then(|| user_role.org_id)
2588+
.then_some( user_role.org_id)
25892589
.flatten()
25902590
})
25912591
.collect::<HashSet<_>>();
25922592

25932593
let resp = futures::future::try_join_all(
25942594
orgs.iter()
2595-
.map(|org_id| state.store.find_organization_by_org_id(&org_id)),
2595+
.map(|org_id| state.store.find_organization_by_org_id(org_id)),
25962596
)
25972597
.await
25982598
.change_context(UserErrors::InternalServerError)?
@@ -2651,7 +2651,7 @@ pub async fn list_merchants_for_user_in_org(
26512651
.into_iter()
26522652
.filter_map(|user_role| {
26532653
(user_role.status == UserStatus::Active)
2654-
.then(|| user_role.merchant_id)
2654+
.then_some( user_role.merchant_id)
26552655
.flatten()
26562656
})
26572657
.collect::<HashSet<_>>()
@@ -2734,7 +2734,7 @@ pub async fn list_profiles_for_user_in_org_and_merchant_account(
27342734
.into_iter()
27352735
.filter_map(|user_role| {
27362736
(user_role.status == UserStatus::Active)
2737-
.then(|| user_role.profile_id)
2737+
.then_some( user_role.profile_id)
27382738
.flatten()
27392739
})
27402740
.collect::<HashSet<_>>();

0 commit comments

Comments
 (0)