Skip to content

Commit

Permalink
iam:fix .
Browse files Browse the repository at this point in the history
  • Loading branch information
ljl committed Jan 20, 2024
1 parent 3de8912 commit cee85aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion support/iam/src/console_passport/api/iam_cp_account_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ impl IamCpAccountApi {
..Default::default()
},
rel_rbum_item_disabled: Some(false),
table_rbum_set_cate_is_left: Some(true),
rel_rbum_set_id: Some(set_id.clone()),
rel_rbum_item_ids: Some(vec![ctx.owner.clone()]),
..Default::default()
Expand All @@ -87,7 +88,7 @@ impl IamCpAccountApi {
)
.await?
.into_iter()
.map(|resp| resp.rel_rbum_item_code)
.map(|resp| resp.rel_rbum_set_cate_sys_code)
.collect::<Vec<String>>();
if cate_codes.is_empty() {
return TardisResp::ok(vec![]);
Expand Down
3 changes: 2 additions & 1 deletion support/iam/src/console_passport/api/iam_cp_app_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ impl IamCpAppApi {
..Default::default()
},
rel_rbum_item_disabled: Some(false),
table_rbum_set_cate_is_left: Some(true),
rel_rbum_set_id: Some(set_id.clone()),
rel_rbum_item_ids: Some(vec![ctx.owner.clone()]),
..Default::default()
Expand All @@ -102,7 +103,7 @@ impl IamCpAppApi {
)
.await?
.into_iter()
.map(|resp| resp.rel_rbum_item_code)
.map(|resp| resp.rel_rbum_set_cate_sys_code)
.collect::<Vec<String>>();
if cate_codes.is_empty() {
return TardisResp::ok(vec![]);
Expand Down

0 comments on commit cee85aa

Please sign in to comment.