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 () => { return (await new IsHaveActiveProcessUseCase().call()).map(async () => {
const execCommand = `${ const execCommand = `${
model.script model.script
} --path ${model.instancePath.pathNormalize()} --form ${fileOutPath}`.replace(/[^a-zA-Z0-9s]/g, ""); } --path ${model.instancePath.pathNormalize()} --form ${fileOutPath}`.replace("\n", "");
// console.log(execCommand);
await new CreateFileUseCase().call(fileOutPath, Buffer.from(JSON.stringify(model.formBuilder))); await new CreateFileUseCase().call(fileOutPath, Buffer.from(JSON.stringify(model.formBuilder)));
await CalculationInstanceDBModel.findById(id).updateOne({ await CalculationInstanceDBModel.findById(id).updateOne({