Fix lint
This commit is contained in:
parent
053ed7f5e6
commit
d7c3670945
4 changed files with 6 additions and 9 deletions
|
@ -8,7 +8,7 @@ import {
|
|||
feedsFormatValidator,
|
||||
setFeedFormatContentType,
|
||||
videoCommentsFeedsValidator,
|
||||
videoFeedsValidator
|
||||
feedsAccountOrChannelFiltersValidator
|
||||
} from '../../middlewares'
|
||||
import { VideoCommentModel } from '../../models/video/video-comment'
|
||||
import { buildFeedMetadata, initFeed, sendFeed } from './shared'
|
||||
|
@ -27,7 +27,7 @@ commentFeedsRouter.get('/video-comments.:format',
|
|||
feedsFormatValidator,
|
||||
setFeedFormatContentType,
|
||||
cacheRouteMiddleware(ROUTE_CACHE_LIFETIME.FEEDS),
|
||||
asyncMiddleware(videoFeedsValidator),
|
||||
asyncMiddleware(feedsAccountOrChannelFiltersValidator),
|
||||
asyncMiddleware(videoCommentsFeedsValidator),
|
||||
asyncMiddleware(generateVideoCommentsFeed)
|
||||
)
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
feedsFormatValidator,
|
||||
setDefaultVideosSort,
|
||||
setFeedFormatContentType,
|
||||
videoFeedsValidator,
|
||||
feedsAccountOrChannelFiltersValidator,
|
||||
videosSortValidator,
|
||||
videoSubscriptionFeedsValidator
|
||||
} from '../../middlewares'
|
||||
|
@ -33,7 +33,7 @@ videoFeedsRouter.get('/videos.:format',
|
|||
setFeedFormatContentType,
|
||||
cacheRouteMiddleware(ROUTE_CACHE_LIFETIME.FEEDS),
|
||||
commonVideosFiltersValidator,
|
||||
asyncMiddleware(videoFeedsValidator),
|
||||
asyncMiddleware(feedsAccountOrChannelFiltersValidator),
|
||||
asyncMiddleware(generateVideoFeed)
|
||||
)
|
||||
|
||||
|
|
|
@ -107,10 +107,7 @@ async function processGenerateStoryboard (job: Job): Promise<void> {
|
|||
}
|
||||
})
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
|
||||
} finally {
|
||||
inputFileMutexReleaser()
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ function feedContentTypeResponse (
|
|||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
const videoFeedsValidator = [
|
||||
const feedsAccountOrChannelFiltersValidator = [
|
||||
query('accountId')
|
||||
.optional()
|
||||
.custom(isIdValid),
|
||||
|
@ -170,7 +170,7 @@ export {
|
|||
feedsFormatValidator,
|
||||
setFeedFormatContentType,
|
||||
setFeedPodcastContentType,
|
||||
videoFeedsValidator,
|
||||
feedsAccountOrChannelFiltersValidator,
|
||||
videoFeedsPodcastValidator,
|
||||
videoSubscriptionFeedsValidator,
|
||||
videoFeedsPodcastSetCacheKey,
|
||||
|
|
Loading…
Reference in a new issue