refactor: remove frozen implementation

This commit is contained in:
Carlos Valente
2024-11-30 22:13:13 +01:00
committed by Carlos Valente
parent 55d349877b
commit 29e682ee06
8 changed files with 5 additions and 47 deletions
@@ -21,15 +21,6 @@ export const rundownPutValidator = [
},
];
export const rundownFrozenPostValidator = [
body('frozen').isBoolean().exists(),
(req: Request, res: Response, next: NextFunction) => {
const errors = validationResult(req);
if (!errors.isEmpty()) return res.status(422).json({ errors: errors.array() });
next();
},
]
export const rundownBatchPutValidator = [
body('data').isObject().exists(),
body('ids').isArray().exists(),