aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-03-06 15:36:44 +0100
committerChocobozzz <chocobozzz@cpy.re>2019-03-18 11:17:59 +0100
commit830b4faff15fb9c81d88e8e69fcdf94aad32bef8 (patch)
tree53de6c9e30ce88734b4bdda62016e0498fe78491 /server/middlewares/validators/videos
parentd4c9f45b31eda0b7a391ddc83eb290ca5cba311f (diff)
downloadPeerTube-830b4faff15fb9c81d88e8e69fcdf94aad32bef8.tar.gz
PeerTube-830b4faff15fb9c81d88e8e69fcdf94aad32bef8.tar.zst
PeerTube-830b4faff15fb9c81d88e8e69fcdf94aad32bef8.zip
Add/update/delete/list my playlists
Diffstat (limited to 'server/middlewares/validators/videos')
-rw-r--r--server/middlewares/validators/videos/video-playlists.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/middlewares/validators/videos/video-playlists.ts b/server/middlewares/validators/videos/video-playlists.ts
index fa26e2336..22b8b8ff1 100644
--- a/server/middlewares/validators/videos/video-playlists.ts
+++ b/server/middlewares/validators/videos/video-playlists.ts
@@ -344,6 +344,7 @@ function getCommonPlaylistEditAttributes () {
344 .custom(isVideoPlaylistPrivacyValid).withMessage('Should have correct playlist privacy'), 344 .custom(isVideoPlaylistPrivacyValid).withMessage('Should have correct playlist privacy'),
345 body('videoChannelId') 345 body('videoChannelId')
346 .optional() 346 .optional()
347 .customSanitizer(toValueOrNull)
347 .toInt() 348 .toInt()
348 ] as (ValidationChain | express.Handler)[] 349 ] as (ValidationChain | express.Handler)[]
349} 350}