From 6032fe2def542813b0afcbdf562df0b345cd219d Mon Sep 17 00:00:00 2001 From: MohammadHoseinPaymard Date: Mon, 26 May 2025 16:58:29 +0330 Subject: [PATCH] update index.js --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 4d1b1bb..152ac32 100644 --- a/index.js +++ b/index.js @@ -95,10 +95,12 @@ require(path.join(process.cwd(), "..", "server", "dist", "database.js")); allWorkFlowInfo[workflow.id]["subFlow"] = subFlowInfo; - console.log("allWorkFlowInfo", JSON.stringify(allWorkFlowInfo, null, 2)); - fs.writeFileSync("./result-pretty.json",JSON.stringify(allWorkFlowInfo,null,2)); + } + console.log("allWorkFlowInfo", JSON.stringify(allWorkFlowInfo, null, 2)); + fs.writeFileSync("./result-pretty.json", JSON.stringify(allWorkFlowInfo, null, 2)); console.timeEnd("WorkflowTester") console.log("DONE"); + process.exit(0); })() \ No newline at end of file