Skip to content

Commit

Permalink
flow: Completion of init api (#677)
Browse files Browse the repository at this point in the history
* flow: fix error

* flow: Completion of init api
  • Loading branch information
ZzIsGod1019 authored Apr 1, 2024
1 parent 10a71fb commit 493bfa4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion middleware/flow/src/flow_initializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use tardis::{
use crate::{
api::{
cc::{flow_cc_inst_api, flow_cc_model_api, flow_cc_state_api},
ci::flow_ci_inst_api,
ci::{flow_ci_inst_api, flow_ci_model_api, flow_ci_state_api},
cs::flow_cs_config_api,
},
domain::{flow_inst, flow_model, flow_state, flow_transition},
Expand Down Expand Up @@ -49,6 +49,8 @@ async fn init_api(web_server: &TardisWebServer) -> TardisResult<()> {
flow_cc_inst_api::FlowCcInstApi,
flow_cs_config_api::FlowCsConfigApi,
flow_ci_inst_api::FlowCiInstApi,
flow_ci_model_api::FlowCiModelApi,
flow_ci_state_api::FlowCiStateApi,
),
)
.await;
Expand Down
2 changes: 1 addition & 1 deletion middleware/flow/src/serv/flow_inst_serv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ impl FlowInstServ {
}
}
crate::dto::flow_var_dto::DefaultValueType::AutoFill => {
match FillType::from_str(&default.value.as_str().ok_or(funs.err().bad_request(
match FillType::from_str(default.value.as_str().ok_or(funs.err().bad_request(
"flow_transitions",
"default_value_type_parse",
"AutoFill default value type is not string",
Expand Down

0 comments on commit 493bfa4

Please sign in to comment.