Fix to return a boolean result for emit_event function
Change-Id: I3cae2a9778e2866137d70a72f540af99d5bfc4bc
diff --git a/package.json b/package.json
index d9784f0..3d9f83b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cord_workflow_controller",
- "version": "0.3.1",
+ "version": "0.3.2",
"description": "CORD Workflow Controller",
"main": "src/server.js",
"scripts": {
diff --git a/src/controllers/eventrouter.js b/src/controllers/eventrouter.js
index cc7d222..4d9ee47 100644
--- a/src/controllers/eventrouter.js
+++ b/src/controllers/eventrouter.js
@@ -299,7 +299,7 @@
workflowRuns[workflowRunId] = workflowRun;
// route event
- logger.log('debug', `event ${topic} is routed to workflow run ${workflowRunId}`);
+ logger.log('debug', `event ${topic} is routed to a new workflow run ${workflowRunId}`);
workflowRun.enqueueEvent(topic, message);
// KICKSTART!
@@ -307,6 +307,8 @@
}
}
});
+
+ return true;
};
const countQueuedEvents = (workflowRunId) => {