update index.js

main
MohammadHoseinPaymard 2 weeks ago
parent 02c85d18fc
commit 648414c0b7
  1. 14
      index.js

@ -107,8 +107,18 @@ require(path.join(process.cwd(), "..", "server", "dist", "database.js"));
// console.log("allWorkFlowInfo", JSON.stringify(allWorkFlowInfo, null, 2));
// fs.writeFileSync("./result-pretty.json", JSON.stringify(allWorkFlowInfo, null, 2));
saveLargeObject(allWorkFlowInfo,"./result-pretty.json")
fs.writeFileSync("./result.json", JSON.stringify(allWorkFlowInfo));
await saveLargeObject(allWorkFlowInfo, "./result-pretty-beforeProcess.json")
fs.writeFileSync("./result-beforeProcess.json", JSON.stringify(allWorkFlowInfo));
for await(let key of Object.keys(allWorkFlowInfo)){
if (!allWorkFlowInfo[key].isValid) {
delete allWorkFlowInfo[key];
}
}
await saveLargeObject(allWorkFlowInfo, "./result-pretty-afterProcess.json")
fs.writeFileSync("./result-afterProcess.json", JSON.stringify(allWorkFlowInfo));
console.timeEnd("WorkflowTester");
console.log("DONE");
process.exit(0);

Loading…
Cancel
Save