Fix lint
This commit is contained in:
parent
26de1467e2
commit
4a35e6587a
1 changed files with 2 additions and 9 deletions
|
@ -7,7 +7,7 @@ import { body, param } from 'express-validator'
|
||||||
import { isIdValid, toIntOrNull } from '../../../helpers/custom-validators/misc.js'
|
import { isIdValid, toIntOrNull } from '../../../helpers/custom-validators/misc.js'
|
||||||
import { areValidationErrors, doesVideoExist, isValidVideoIdParam } from '../shared/index.js'
|
import { areValidationErrors, doesVideoExist, isValidVideoIdParam } from '../shared/index.js'
|
||||||
|
|
||||||
const getVideoLocalViewerValidator = [
|
export const getVideoLocalViewerValidator = [
|
||||||
param('localViewerId')
|
param('localViewerId')
|
||||||
.custom(isIdValid),
|
.custom(isIdValid),
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ const getVideoLocalViewerValidator = [
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
const videoViewValidator = [
|
export const videoViewValidator = [
|
||||||
isValidVideoIdParam('videoId'),
|
isValidVideoIdParam('videoId'),
|
||||||
|
|
||||||
body('currentTime')
|
body('currentTime')
|
||||||
|
@ -54,10 +54,3 @@ const videoViewValidator = [
|
||||||
return next()
|
return next()
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
export {
|
|
||||||
getVideoLocalViewerValidator, videoViewValidator
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue