diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/auth.ts | 2 | ||||
| -rw-r--r-- | src/errors/errorware.ts | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/src/auth.ts b/src/auth.ts index 5a1707c..6339260 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -112,9 +112,7 @@ export class AuthRouter { // Handle error if user is unauthorised export const unauthorisedErr: Errorware = (err: Error, req: Request, res: Response, next: NextFunction): void => { - console.log('fffff'); if (err.name === 'UnauthorizedError') { - console.log('efewfwf'); return next(new RequestError( 401, 'not_authorised', 'user does not have correct authorisation for task' diff --git a/src/errors/errorware.ts b/src/errors/errorware.ts index e2355de..b01f83b 100644 --- a/src/errors/errorware.ts +++ b/src/errors/errorware.ts @@ -53,9 +53,7 @@ export type Errorware = export const errorHandler: Errorware = (err: Error, req: Request, res: Response, next: NextFunction): void => { - console.log(err); if (RequestError.is(err)) { - console.log('fewkuihfklsfv'); res.status(err.code) .json(err.responseBlock()); } else { |
