Skip to content

Commit

Permalink
Fix plugin initialization in hyperflow-server.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpawlik committed Jun 13, 2016
1 parent a06e683 commit f118222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/hyperflow-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ app.post('/apps', function(req, res) {
engine[appId] = new Engine(config, wflib, appId, function(err) {
if (err) return badRequest(res);
plugins.forEach(function(plugin) {
plugin.init(rcl, wflib, engine);
plugin.init(rcl, wflib, engine[appId]);
});
engine[appId].runInstance(function(err) {
if (err) return badRequest(res);
Expand Down

0 comments on commit f118222

Please sign in to comment.