Skip to content

Commit 09bb4ce

Browse files
committed
[Worker] Fixed order for context modules loading to prevent auth adapter errors on controllers.
1 parent 8c1580e commit 09bb4ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/app/worker.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,11 @@ Worker.prototype.configureApplicationStack = function(app, server, callback)
400400
);
401401
}
402402
callback && callback();
403+
},
404+
405+
// Load configured context modules
406+
function(callback) {
407+
self.configureContextModules(callback);
403408
}
404409

405410
], function(err) {
@@ -455,11 +460,6 @@ Worker.prototype.configure = function(app, server, callback)
455460

456461
async.parallel([
457462

458-
// Load configured context modules
459-
function(callback) {
460-
self.configureContextModules(callback);
461-
},
462-
463463
// Setup Greppy default controllers
464464
function(callback) {
465465
self.configureDefaultControllers(callback);

0 commit comments

Comments
 (0)