diff --git a/entityBackend/app.js b/entityBackend/app.js index 4c9ed34..1c47609 100644 --- a/entityBackend/app.js +++ b/entityBackend/app.js @@ -83,8 +83,7 @@ loadJsonFile(pathFile) if(!tokenJWT) { let error = 'It is necessary to provide an authentication token' log.error(`[App] -----> ${error}`) - // res.status(401).send(`Error: ${error}`) - next() + res.status(401).send(`Error: ${error}`) } else { // if(keyManagerUrl == '') { // let error = 'It is necessary to provide a key manager URL'