diff --git a/src/modules/http-client/implementation/middleware/authorization-middleware.js b/src/modules/http-client/implementation/middleware/authorization-middleware.js index 26e54b191e..b0cd19ac2c 100644 --- a/src/modules/http-client/implementation/middleware/authorization-middleware.js +++ b/src/modules/http-client/implementation/middleware/authorization-middleware.js @@ -6,7 +6,7 @@ const getToken = (req) => { export default (authService) => async (req, res, next) => { const urlElements = req.url.split('/'); - const operation = urlElements[urlElements.length() - 1].split('?')[0].toUpperCase(); + const operation = urlElements[urlElements.length - 1].split('?')[0].toUpperCase(); if (authService.isPublicOperation(operation)) { return next();