Skip to content

Commit

Permalink
iam:fix account search dept.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljl committed Jan 22, 2024
1 parent 96fd219 commit c852d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/iam/src/basic/serv/clients/iam_search_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl IamSearchClient {
for set_id in set_ids {
let set_items = IamSetServ::find_set_items(Some(set_id), None, Some(account_id.to_string()), None, true, None, funs, ctx).await?;
account_resp_dept_id
.extend(set_items.iter().filter(|s| s.rel_rbum_set_cate_id.is_none()).map(|s| s.rel_rbum_set_cate_id.clone().unwrap_or("".to_owned())).collect::<Vec<_>>());
.extend(set_items.iter().filter(|s| s.rel_rbum_set_cate_id.is_some()).map(|s| s.rel_rbum_set_cate_id.clone().unwrap_or("".to_owned())).collect::<Vec<_>>());
}

let tag = funs.conf::<IamConfig>().spi.search_account_tag.clone();
Expand Down

0 comments on commit c852d3a

Please sign in to comment.