diff --git a/server/src/features/calculations_instance/domain/exec_calculations_instance_process_scenario.ts b/server/src/features/calculations_instance/domain/exec_calculations_instance_process_scenario.ts index 5bfadb2..8967133 100644 --- a/server/src/features/calculations_instance/domain/exec_calculations_instance_process_scenario.ts +++ b/server/src/features/calculations_instance/domain/exec_calculations_instance_process_scenario.ts @@ -15,8 +15,10 @@ export class ExecCalculationInstanceProcessScenario extends CallbackStrategyWith async (model) => { const fileOutPath = model.instancePath.pathNormalize() + "/form.json"; return (await new IsHaveActiveProcessUseCase().call()).map(async () => { - const execCommand = `${model.script} --path ${model.instancePath.pathNormalize()} --form ${fileOutPath}`; - console.log(execCommand); + const execCommand = `${ + model.script + } --path ${model.instancePath.pathNormalize()} --form ${fileOutPath}`.replace(/[^a-zA-Z0-9s]/g, ""); + // console.log(execCommand); await new CreateFileUseCase().call(fileOutPath, Buffer.from(JSON.stringify(model.formBuilder))); await CalculationInstanceDBModel.findById(id).updateOne({