aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/video-channel-sync.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/video-channel-sync.ts')
-rw-r--r--server/controllers/api/video-channel-sync.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/controllers/api/video-channel-sync.ts b/server/controllers/api/video-channel-sync.ts
index 03c54b59c..6b52ac7dd 100644
--- a/server/controllers/api/video-channel-sync.ts
+++ b/server/controllers/api/video-channel-sync.ts
@@ -2,6 +2,7 @@ import express from 'express'
2import { auditLoggerFactory, getAuditIdFromRes, VideoChannelSyncAuditView } from '@server/helpers/audit-logger' 2import { auditLoggerFactory, getAuditIdFromRes, VideoChannelSyncAuditView } from '@server/helpers/audit-logger'
3import { logger } from '@server/helpers/logger' 3import { logger } from '@server/helpers/logger'
4import { 4import {
5 apiRateLimiter,
5 asyncMiddleware, 6 asyncMiddleware,
6 asyncRetryTransactionMiddleware, 7 asyncRetryTransactionMiddleware,
7 authenticate, 8 authenticate,
@@ -17,6 +18,8 @@ import { HttpStatusCode, VideoChannelSyncState } from '@shared/models'
17const videoChannelSyncRouter = express.Router() 18const videoChannelSyncRouter = express.Router()
18const auditLogger = auditLoggerFactory('channel-syncs') 19const auditLogger = auditLoggerFactory('channel-syncs')
19 20
21videoChannelSyncRouter.use(apiRateLimiter)
22
20videoChannelSyncRouter.post('/', 23videoChannelSyncRouter.post('/',
21 authenticate, 24 authenticate,
22 ensureSyncIsEnabled, 25 ensureSyncIsEnabled,