diff options
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/users/index.ts | 1 | ||||
-rw-r--r-- | server/controllers/api/video-channel.ts | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts index 8b8ebcd23..0b0081520 100644 --- a/server/controllers/api/users/index.ts +++ b/server/controllers/api/users/index.ts | |||
@@ -34,7 +34,6 @@ import { | |||
34 | usersVerifyEmailValidator | 34 | usersVerifyEmailValidator |
35 | } from '../../../middlewares/validators' | 35 | } from '../../../middlewares/validators' |
36 | import { UserModel } from '../../../models/account/user' | 36 | import { UserModel } from '../../../models/account/user' |
37 | import { OAuthTokenModel } from '../../../models/oauth/oauth-token' | ||
38 | import { auditLoggerFactory, getAuditIdFromRes, UserAuditView } from '../../../helpers/audit-logger' | 37 | import { auditLoggerFactory, getAuditIdFromRes, UserAuditView } from '../../../helpers/audit-logger' |
39 | import { meRouter } from './me' | 38 | import { meRouter } from './me' |
40 | import { deleteUserToken } from '../../../lib/oauth-model' | 39 | import { deleteUserToken } from '../../../lib/oauth-model' |
diff --git a/server/controllers/api/video-channel.ts b/server/controllers/api/video-channel.ts index 4ca5ba9bc..1fa842d9c 100644 --- a/server/controllers/api/video-channel.ts +++ b/server/controllers/api/video-channel.ts | |||
@@ -46,7 +46,7 @@ videoChannelRouter.get('/', | |||
46 | 46 | ||
47 | videoChannelRouter.post('/', | 47 | videoChannelRouter.post('/', |
48 | authenticate, | 48 | authenticate, |
49 | videoChannelsAddValidator, | 49 | asyncMiddleware(videoChannelsAddValidator), |
50 | asyncRetryTransactionMiddleware(addVideoChannel) | 50 | asyncRetryTransactionMiddleware(addVideoChannel) |
51 | ) | 51 | ) |
52 | 52 | ||