This commit is contained in:
IDONTSUDO 2024-11-28 17:51:45 +03:00
parent 300a5005ba
commit 2024834d06

View file

@ -17,8 +17,7 @@ export class ExecCalculationInstanceProcessScenario extends CallbackStrategyWith
return (await new IsHaveActiveProcessUseCase().call()).map(async () => {
const execCommand = `${
model.script
} --path ${model.instancePath.pathNormalize()} --form ${fileOutPath}`.replace(/[^a-zA-Z0-9s]/g, "");
// console.log(execCommand);
} --path ${model.instancePath.pathNormalize()} --form ${fileOutPath}`.replace("\n", "");
await new CreateFileUseCase().call(fileOutPath, Buffer.from(JSON.stringify(model.formBuilder)));
await CalculationInstanceDBModel.findById(id).updateOne({