mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2026-10-25 17:57:56 +00:00
fix: fix linting issues
This commit is contained in:
@@ -46,7 +46,7 @@ export class AllExceptionsFilter implements ExceptionFilter {
|
||||
? ErrorCategory.VALIDATION_ERROR
|
||||
: category;
|
||||
const resErrors = errors.map(
|
||||
(error: IFieldError) => ({ field: error.field, message: i18n.t(error.message) }) as IFieldError,
|
||||
(error: IFieldError) => ({ field: error.field, message: i18n.t(error.message) } as IFieldError),
|
||||
);
|
||||
|
||||
return res.status(status).json(ResponseFactory.error(resCategory, resMessage, resErrors));
|
||||
|
||||
Reference in New Issue
Block a user