diff options
Diffstat (limited to 'server/controllers/api/video-channel-sync.ts')
-rw-r--r-- | server/controllers/api/video-channel-sync.ts | 3 |
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' | |||
2 | import { auditLoggerFactory, getAuditIdFromRes, VideoChannelSyncAuditView } from '@server/helpers/audit-logger' | 2 | import { auditLoggerFactory, getAuditIdFromRes, VideoChannelSyncAuditView } from '@server/helpers/audit-logger' |
3 | import { logger } from '@server/helpers/logger' | 3 | import { logger } from '@server/helpers/logger' |
4 | import { | 4 | import { |
5 | apiRateLimiter, | ||
5 | asyncMiddleware, | 6 | asyncMiddleware, |
6 | asyncRetryTransactionMiddleware, | 7 | asyncRetryTransactionMiddleware, |
7 | authenticate, | 8 | authenticate, |
@@ -17,6 +18,8 @@ import { HttpStatusCode, VideoChannelSyncState } from '@shared/models' | |||
17 | const videoChannelSyncRouter = express.Router() | 18 | const videoChannelSyncRouter = express.Router() |
18 | const auditLogger = auditLoggerFactory('channel-syncs') | 19 | const auditLogger = auditLoggerFactory('channel-syncs') |
19 | 20 | ||
21 | videoChannelSyncRouter.use(apiRateLimiter) | ||
22 | |||
20 | videoChannelSyncRouter.post('/', | 23 | videoChannelSyncRouter.post('/', |
21 | authenticate, | 24 | authenticate, |
22 | ensureSyncIsEnabled, | 25 | ensureSyncIsEnabled, |