} from '../../../helpers/custom-validators/misc'
import {
checkUserCanManageVideo,
+ isVideoOriginallyPublishedAtValid,
isScheduleVideoUpdatePrivacyValid,
isVideoCategoryValid,
isVideoChannelOfAccountExist,
.optional()
.toBoolean()
.custom(isBooleanValid).withMessage('Should have downloading enabled boolean'),
-
+ body('originallyPublishedAt')
+ .optional()
+ .customSanitizer(toValueOrNull)
+ .custom(isVideoOriginallyPublishedAtValid).withMessage('Should have a valid original publication date'),
body('scheduleUpdate')
.optional()
.customSanitizer(toValueOrNull),