mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 01:12:59 +00:00
Add eslint rule and fix as many issues as possible
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Request, Response, NextFunction } from 'express';
|
||||
import { validationResult } from 'express-validator';
|
||||
import { BadRequestError, UnauthorizedRequestError, ValidationError } from '../utils/errors';
|
||||
import { NextFunction, Request, Response } from "express";
|
||||
import { validationResult } from "express-validator";
|
||||
import { UnauthorizedRequestError, ValidationError } from "../utils/errors";
|
||||
|
||||
/**
|
||||
* Validate intended inputs on [req] via express-validator
|
||||
@@ -20,7 +20,7 @@ const validate = (req: Request, res: Response, next: NextFunction) => {
|
||||
|
||||
return next();
|
||||
} catch (err) {
|
||||
return next(UnauthorizedRequestError({ message: 'Unauthenticated requests are not allowed. Try logging in' }))
|
||||
return next(UnauthorizedRequestError({ message: "Unauthenticated requests are not allowed. Try logging in" }))
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user