Fix to return a boolean result for emit_event function
Change-Id: I3cae2a9778e2866137d70a72f540af99d5bfc4bc
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) => {