progress
This commit is contained in:
parent
300a5005ba
commit
2024834d06
1 changed files with 1 additions and 2 deletions
|
@ -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({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue