Remove bad use of profiling step
This commit is contained in:
parent
c0830862c8
commit
48c5a458f3
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user