Backend: code formatted

This commit is contained in:
2024-05-12 21:25:52 +02:00
parent fa25015472
commit bf791db47f
26 changed files with 574 additions and 469 deletions

View File

@ -1,6 +1,6 @@
import { Request, Response, NextFunction } from 'express';
import { object, AnySchema } from 'yup';
import { Log } from 'nork';
import { Request, Response, NextFunction } from "express";
import { object, AnySchema } from "yup";
import { Log } from "nork";
const validate = (schema: AnySchema) => async (req: Request, res: Response, next: NextFunction) => {
try {
@ -8,7 +8,7 @@ const validate = (schema: AnySchema) => async (req: Request, res: Response, next
next();
} catch (err: any) {
return res.status(400).json(Log.error(400, 'validation error', err));
return res.status(400).json(Log.error(400, "validation error", err));
}
};