diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-03 18:14:05 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-04 08:58:33 +0200 |
commit | 558187a72fc75b22f762af7b6608d15b2420f8df (patch) | |
tree | ff9ca7d5b982b562ce2d6f1c41e17d00ebd9854e /server/controllers/api/overviews.ts | |
parent | 8ea6f49ad7b6deb63e31dffc2acf55cbc479da60 (diff) | |
download | PeerTube-558187a72fc75b22f762af7b6608d15b2420f8df.tar.gz PeerTube-558187a72fc75b22f762af7b6608d15b2420f8df.tar.zst PeerTube-558187a72fc75b22f762af7b6608d15b2420f8df.zip |
Fix overview cache
Diffstat (limited to 'server/controllers/api/overviews.ts')
-rw-r--r-- | server/controllers/api/overviews.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/overviews.ts b/server/controllers/api/overviews.ts index 56f921ce5..da941c0ac 100644 --- a/server/controllers/api/overviews.ts +++ b/server/controllers/api/overviews.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import { buildNSFWFilter } from '../../helpers/express-utils' | 2 | import { buildNSFWFilter } from '../../helpers/express-utils' |
3 | import { VideoModel } from '../../models/video/video' | 3 | import { VideoModel } from '../../models/video/video' |
4 | import { asyncMiddleware, executeIfActivityPub } from '../../middlewares' | 4 | import { asyncMiddleware } from '../../middlewares' |
5 | import { TagModel } from '../../models/video/tag' | 5 | import { TagModel } from '../../models/video/tag' |
6 | import { VideosOverview } from '../../../shared/models/overviews' | 6 | import { VideosOverview } from '../../../shared/models/overviews' |
7 | import { OVERVIEWS, ROUTE_CACHE_LIFETIME } from '../../initializers' | 7 | import { OVERVIEWS, ROUTE_CACHE_LIFETIME } from '../../initializers' |
@@ -10,7 +10,7 @@ import { cacheRoute } from '../../middlewares/cache' | |||
10 | const overviewsRouter = express.Router() | 10 | const overviewsRouter = express.Router() |
11 | 11 | ||
12 | overviewsRouter.get('/videos', | 12 | overviewsRouter.get('/videos', |
13 | executeIfActivityPub(asyncMiddleware(cacheRoute(ROUTE_CACHE_LIFETIME.OVERVIEWS.VIDEOS))), | 13 | asyncMiddleware(cacheRoute(ROUTE_CACHE_LIFETIME.OVERVIEWS.VIDEOS)), |
14 | asyncMiddleware(getVideosOverview) | 14 | asyncMiddleware(getVideosOverview) |
15 | ) | 15 | ) |
16 | 16 | ||