diff --git a/index.js b/index.js index 7aad7c2..d0e4947 100644 --- a/index.js +++ b/index.js @@ -48,8 +48,8 @@ require(path.join(process.cwd(), "..", "server", "dist", "database.js")); allWorkFlowInfo[workflow.id] = { isValid: invalidPathsWithoutEnding.length == 0 ? true : false, root: { - validPaths: invalidPathsWithoutEnding.length == 0 && tree.length > 0 ? tree : [], - // invalidPaths: invalidPathsWithoutEnding.length == 0?[]:invalidPathsWithoutEnding, + validPaths: invalidPathsWithoutEnding.length == 0 && tree.length > 0 ? tree : "", + invalidPaths: invalidPathsWithoutEnding, valid: tree.length, invalid: invalidPathsWithoutEnding.length, subFlowList: subFlowParentIds @@ -112,6 +112,7 @@ require(path.join(process.cwd(), "..", "server", "dist", "database.js")); for await(let key of Object.keys(allWorkFlowInfo)){ if (!allWorkFlowInfo[key].isValid) { + console.log(`workflow with id:'${key}' in invalid`); delete allWorkFlowInfo[key]; } }