From 830b4faff15fb9c81d88e8e69fcdf94aad32bef8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 6 Mar 2019 15:36:44 +0100 Subject: Add/update/delete/list my playlists --- server/middlewares/validators/videos/video-playlists.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'server/middlewares') 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 () { .custom(isVideoPlaylistPrivacyValid).withMessage('Should have correct playlist privacy'), body('videoChannelId') .optional() + .customSanitizer(toValueOrNull) .toInt() ] as (ValidationChain | express.Handler)[] } -- cgit v1.2.3