Typo
This commit is contained in:
@@ -20,7 +20,7 @@ AnalysesController.prototype.register = function (app) {
|
||||
prepareResponse(),
|
||||
setCacheControlHeader(),
|
||||
sendResponse(),
|
||||
unathorizedError()
|
||||
unauthorizedError()
|
||||
);
|
||||
};
|
||||
|
||||
@@ -112,7 +112,7 @@ function sendResponse () {
|
||||
};
|
||||
}
|
||||
|
||||
function unathorizedError () {
|
||||
function unauthorizedError () {
|
||||
return function unathorizedErrorMiddleware(err, req, res, next) {
|
||||
if (err.message.match(/permission\sdenied/)) {
|
||||
err = new Error('Unauthorized');
|
||||
|
||||
Reference in New Issue
Block a user