]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/validators/user-history.ts
improve api param message for dates
[github/Chocobozzz/PeerTube.git] / server / middlewares / validators / user-history.ts
index 058bf77583a9c27c6ceb5ba096bc039b68332474..647294cc38cd7ebaca08f39a1b2d5620fe9c0222 100644 (file)
@@ -21,7 +21,7 @@ const userHistoryListValidator = [
 const userHistoryRemoveValidator = [
   body('beforeDate')
     .optional()
-    .custom(isDateValid).withMessage('Should have a valid before date'),
+    .custom(isDateValid).withMessage('Should have a before date that conforms to ISO 8601'),
 
   (req: express.Request, res: express.Response, next: express.NextFunction) => {
     logger.debug('Checking userHistoryRemoveValidator parameters', { parameters: req.body })