]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/validators/video-channels.ts
Misc cleanup
[github/Chocobozzz/PeerTube.git] / server / middlewares / validators / video-channels.ts
index 0326e05b916209a9c2b240247523762bac58938a..c6fd3b59d927158847ee0824eb752e53bb1ceeff 100644 (file)
@@ -1,18 +1,13 @@
-import { body, param } from 'express-validator/check'
 import * as express from 'express'
-
-import { checkErrors } from './utils'
+import { body, param } from 'express-validator/check'
+import { UserRight } from '../../../shared'
+import { checkVideoAccountExists } from '../../helpers/custom-validators/accounts'
+import { isVideoChannelDescriptionValid, isVideoChannelNameValid } from '../../helpers/custom-validators/video-channels'
+import { checkVideoChannelExists, isIdOrUUIDValid } from '../../helpers/index'
+import { logger } from '../../helpers/logger'
 import { database as db } from '../../initializers'
-import {
-  logger,
-  isIdOrUUIDValid,
-  isVideoChannelDescriptionValid,
-  isVideoChannelNameValid,
-  checkVideoChannelExists,
-  checkVideoAccountExists
-} from '../../helpers'
 import { UserInstance } from '../../models'
-import { UserRight } from '../../../shared'
+import { checkErrors } from './utils'
 
 const listVideoAccountChannelsValidator = [
   param('accountId').custom(isIdOrUUIDValid).withMessage('Should have a valid account id'),