Skip to content

Commit

Permalink
Typo fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
djordjekovac committed Sep 22, 2023
1 parent 5e93746 commit 51c7227
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 51c7227

Please sign in to comment.