diff --git a/backend/middlewares/flow/src/serv/flow_model_serv.rs b/backend/middlewares/flow/src/serv/flow_model_serv.rs index e26255eca..6965856ec 100644 --- a/backend/middlewares/flow/src/serv/flow_model_serv.rs +++ b/backend/middlewares/flow/src/serv/flow_model_serv.rs @@ -200,24 +200,20 @@ impl RbumItemCrudOperation TardisResult<()> { let model_detail = Self::get_item(flow_model_id, &FlowModelFilterReq::default(), funs, ctx).await?; - let mut refresh_model_name_by_sorted_states = false; if let Some(bind_states) = &modify_req.bind_states { for bind_state in bind_states { Self::bind_state(flow_model_id, bind_state, funs, ctx).await?; } - refresh_model_name_by_sorted_states = true; } if let Some(unbind_states) = &modify_req.unbind_states { for unbind_state in unbind_states { Self::unbind_state(flow_model_id, unbind_state, funs, ctx).await?; } - refresh_model_name_by_sorted_states = true; } if let Some(modify_states) = &modify_req.modify_states { for modify_state in modify_states { Self::modify_rel_state_ext(flow_model_id, modify_state, funs, ctx).await?; } - refresh_model_name_by_sorted_states = true; } if let Some(add_transitions) = &modify_req.add_transitions { Self::add_transitions(flow_model_id, add_transitions, funs, ctx).await?; @@ -264,9 +260,6 @@ impl RbumItemCrudOperation Err(funs.err().not_found("flow_inst_serv", "get_model_id_by_own_paths", "model not found", "404-flow-model-not-found")), } } - - async fn refresh_model_name_by_sorted_states(flow_model_id: &str, funs: &TardisFunsInst, ctx: &TardisContext) -> TardisResult<()> { - Self::modify_item( - flow_model_id, - &mut FlowModelModifyReq { - name: Some(Self::find_sorted_rel_states_by_model_id(flow_model_id, funs, ctx).await?.into_iter().map(|state| state.name).collect_vec().join("-").into()), - ..Default::default() - }, - funs, - ctx, - ) - .await?; - Ok(()) - } } diff --git a/backend/supports/iam/src/basic/dto/iam_cert_conf_dto.rs b/backend/supports/iam/src/basic/dto/iam_cert_conf_dto.rs index 93810384e..9de18dc9d 100644 --- a/backend/supports/iam/src/basic/dto/iam_cert_conf_dto.rs +++ b/backend/supports/iam/src/basic/dto/iam_cert_conf_dto.rs @@ -187,6 +187,7 @@ impl IamCertConfLdapResp { &self.account_field_map.field_display_name, &self.account_field_map.field_email, &self.account_field_map.field_mobile, + &self.account_field_map.field_labor_type, ]; [vec, vec1].concat() }