aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/videos/video-playlists.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators/videos/video-playlists.ts')
-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}