From cf7a61b5a2b68fd966c4a355e37e84b048ed296b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 31 Jul 2018 15:09:34 +0200 Subject: Cleanup req files on bad request --- server/middlewares/validators/video-channels.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'server/middlewares/validators/video-channels.ts') diff --git a/server/middlewares/validators/video-channels.ts b/server/middlewares/validators/video-channels.ts index 7f65f7290..143ce9582 100644 --- a/server/middlewares/validators/video-channels.ts +++ b/server/middlewares/validators/video-channels.ts @@ -1,7 +1,7 @@ import * as express from 'express' import { body, param } from 'express-validator/check' import { UserRight } from '../../../shared' -import { isAccountIdExist, isAccountNameWithHostExist } from '../../helpers/custom-validators/accounts' +import { isAccountNameWithHostExist } from '../../helpers/custom-validators/accounts' import { isIdOrUUIDValid } from '../../helpers/custom-validators/misc' import { isVideoChannelDescriptionValid, @@ -13,8 +13,6 @@ import { logger } from '../../helpers/logger' import { UserModel } from '../../models/account/user' import { VideoChannelModel } from '../../models/video/video-channel' import { areValidationErrors } from './utils' -import { isAvatarFile } from '../../helpers/custom-validators/users' -import { CONSTRAINTS_FIELDS } from '../../initializers' const listVideoAccountChannelsValidator = [ param('accountName').exists().withMessage('Should have a valid account name'), -- cgit v1.2.3