aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/video-channel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/video-channel.ts')
-rw-r--r--server/controllers/api/video-channel.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/video-channel.ts b/server/controllers/api/video-channel.ts
index 7bdb33737..a0c6601d9 100644
--- a/server/controllers/api/video-channel.ts
+++ b/server/controllers/api/video-channel.ts
@@ -108,7 +108,7 @@ videoChannelRouter.delete('/:nameWithHost',
108 108
109videoChannelRouter.get('/:nameWithHost', 109videoChannelRouter.get('/:nameWithHost',
110 asyncMiddleware(videoChannelsNameWithHostValidator), 110 asyncMiddleware(videoChannelsNameWithHostValidator),
111 asyncMiddleware(getVideoChannel) 111 getVideoChannel
112) 112)
113 113
114videoChannelRouter.get('/:nameWithHost/video-playlists', 114videoChannelRouter.get('/:nameWithHost/video-playlists',
@@ -281,7 +281,7 @@ async function removeVideoChannel (req: express.Request, res: express.Response)
281 return res.type('json').status(HttpStatusCode.NO_CONTENT_204).end() 281 return res.type('json').status(HttpStatusCode.NO_CONTENT_204).end()
282} 282}
283 283
284async function getVideoChannel (req: express.Request, res: express.Response) { 284function getVideoChannel (req: express.Request, res: express.Response) {
285 const videoChannel = res.locals.videoChannel 285 const videoChannel = res.locals.videoChannel
286 286
287 if (videoChannel.isOutdated()) { 287 if (videoChannel.isOutdated()) {