diff options
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r-- | server/middlewares/validators/videos/videos.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/middlewares/validators/videos/videos.ts b/server/middlewares/validators/videos/videos.ts index 656d161d8..bf21bca8c 100644 --- a/server/middlewares/validators/videos/videos.ts +++ b/server/middlewares/validators/videos/videos.ts | |||
@@ -393,6 +393,8 @@ export { | |||
393 | function areErrorsInScheduleUpdate (req: express.Request, res: express.Response) { | 393 | function areErrorsInScheduleUpdate (req: express.Request, res: express.Response) { |
394 | if (req.body.scheduleUpdate) { | 394 | if (req.body.scheduleUpdate) { |
395 | if (!req.body.scheduleUpdate.updateAt) { | 395 | if (!req.body.scheduleUpdate.updateAt) { |
396 | logger.warn('Invalid parameters: scheduleUpdate.updateAt is mandatory.') | ||
397 | |||
396 | res.status(400) | 398 | res.status(400) |
397 | .json({ error: 'Schedule update at is mandatory.' }) | 399 | .json({ error: 'Schedule update at is mandatory.' }) |
398 | 400 | ||