Fix lint
This commit is contained in:
parent
fde37dc99c
commit
ceba0e65d4
|
@ -1,16 +1,16 @@
|
||||||
import * as express from 'express'
|
import * as express from 'express'
|
||||||
import { body, param } from 'express-validator'
|
import { body, param } from 'express-validator'
|
||||||
|
import { MUserAccountUrl } from '@server/typings/models'
|
||||||
import { UserRight } from '../../../../shared'
|
import { UserRight } from '../../../../shared'
|
||||||
import { isIdOrUUIDValid, isIdValid } from '../../../helpers/custom-validators/misc'
|
import { isIdOrUUIDValid, isIdValid } from '../../../helpers/custom-validators/misc'
|
||||||
import { isValidVideoCommentText } from '../../../helpers/custom-validators/video-comments'
|
import { isValidVideoCommentText } from '../../../helpers/custom-validators/video-comments'
|
||||||
import { logger } from '../../../helpers/logger'
|
import { logger } from '../../../helpers/logger'
|
||||||
import { VideoCommentModel } from '../../../models/video/video-comment'
|
|
||||||
import { areValidationErrors } from '../utils'
|
|
||||||
import { Hooks } from '../../../lib/plugins/hooks'
|
|
||||||
import { AcceptResult, isLocalVideoCommentReplyAccepted, isLocalVideoThreadAccepted } from '../../../lib/moderation'
|
|
||||||
import { doesVideoExist } from '../../../helpers/middlewares'
|
import { doesVideoExist } from '../../../helpers/middlewares'
|
||||||
import { MCommentOwner, MVideo, MVideoFullLight, MVideoId, MCommentOwnerVideoReply } from '../../../typings/models/video'
|
import { AcceptResult, isLocalVideoCommentReplyAccepted, isLocalVideoThreadAccepted } from '../../../lib/moderation'
|
||||||
import { MUser, MUserAccountUrl } from '@server/typings/models'
|
import { Hooks } from '../../../lib/plugins/hooks'
|
||||||
|
import { VideoCommentModel } from '../../../models/video/video-comment'
|
||||||
|
import { MCommentOwnerVideoReply, MVideo, MVideoFullLight, MVideoId } from '../../../typings/models/video'
|
||||||
|
import { areValidationErrors } from '../utils'
|
||||||
|
|
||||||
const listVideoCommentThreadsValidator = [
|
const listVideoCommentThreadsValidator = [
|
||||||
param('videoId').custom(isIdOrUUIDValid).not().isEmpty().withMessage('Should have a valid videoId'),
|
param('videoId').custom(isIdOrUUIDValid).not().isEmpty().withMessage('Should have a valid videoId'),
|
||||||
|
|
Loading…
Reference in New Issue