Skip to content

Commit

Permalink
Fix: Returns broker if instantiated via existing runtime.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoernert committed Feb 5, 2024
1 parent b7674b5 commit 1488f7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions framework/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
node: function() {
node: async function() {
var os = require("os");

if(typeof process.env["EAF_NODE_ID"] == 'undefined') {
Expand All @@ -15,7 +15,8 @@ module.exports = {
runnerArgs.push(__dirname + "/services/**/*.service.js");
}
const runner = new Runner();
runner.start(runnerArgs);
await runner.start(runnerArgs);
return runner.broker;

}
}

0 comments on commit 1488f7f

Please sign in to comment.