routes-utility
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -97,3 +97,3 @@ "use strict"; | ||
lastExecutedController = currentController; | ||
currentController.body.call(context, req, res, next, finish); | ||
return currentController.body.call(context, req, res, next, finish); | ||
}).catch((err) => { | ||
@@ -105,3 +105,3 @@ next(err); | ||
setImmediate(() => { | ||
try { | ||
When(null).then(() => { | ||
_.defaults(this._statistics.PENDING.STAGES, { | ||
@@ -112,7 +112,6 @@ [currentController.name]: 0 | ||
lastExecutedController = currentController; | ||
currentController.body.call(context, req, req, next, finish); | ||
} | ||
catch (e) { | ||
return currentController.body.call(context, req, req, next, finish); | ||
}).catch((e) => { | ||
next(e); | ||
} | ||
}); | ||
}); | ||
@@ -119,0 +118,0 @@ return def.promise; |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"scripts": { | ||
@@ -10,0 +10,0 @@ "test": "./node_modules/.bin/mocha --opts tests/mocha.opts tests/**/*.ts", |
Sorry, the diff of this file is not supported yet
16504
225