pull/6294/head
Chocobozzz 2024-03-26 17:43:03 +01:00
parent 26de1467e2
commit 4a35e6587a
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 9 deletions

View File

@ -7,7 +7,7 @@ import { body, param } from 'express-validator'
import { isIdValid, toIntOrNull } from '../../../helpers/custom-validators/misc.js'
import { areValidationErrors, doesVideoExist, isValidVideoIdParam } from '../shared/index.js'
const getVideoLocalViewerValidator = [
export const getVideoLocalViewerValidator = [
param('localViewerId')
.custom(isIdValid),
@ -28,7 +28,7 @@ const getVideoLocalViewerValidator = [
}
]
const videoViewValidator = [
export const videoViewValidator = [
isValidVideoIdParam('videoId'),
body('currentTime')
@ -54,10 +54,3 @@ const videoViewValidator = [
return next()
}
]
// ---------------------------------------------------------------------------
export {
getVideoLocalViewerValidator, videoViewValidator
}