Remove bad use of profiling step

This commit is contained in:
Daniel García Aubert 2018-02-28 19:22:22 +01:00
parent c0830862c8
commit 48c5a458f3

View File

@ -1,7 +1,5 @@
module.exports = function authorize (authApi) { module.exports = function authorize (authApi) {
return function authorizeMiddleware (req, res, next) { return function authorizeMiddleware (req, res, next) {
req.profiler.done('req2params.setup');
authApi.authorize(req, res, (err, authorized) => { authApi.authorize(req, res, (err, authorized) => {
req.profiler.done('authorize'); req.profiler.done('authorize');
if (err) { if (err) {