aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/videos/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts
index 6ac13e6a4..27f67895e 100644
--- a/server/controllers/api/videos/index.ts
+++ b/server/controllers/api/videos/index.ts
@@ -421,7 +421,7 @@ async function viewVideo (req: express.Request, res: express.Response) {
421 const videoInstance = res.locals.video 421 const videoInstance = res.locals.video
422 422
423 const ip = req.ip 423 const ip = req.ip
424 const exists = await Redis.Instance.isVideoIPViewExists(ip, videoInstance.uuid) 424 const exists = await Redis.Instance.doesVideoIPViewExist(ip, videoInstance.uuid)
425 if (exists) { 425 if (exists) {
426 logger.debug('View for ip %s and video %s already exists.', ip, videoInstance.uuid) 426 logger.debug('View for ip %s and video %s already exists.', ip, videoInstance.uuid)
427 return res.status(204).end() 427 return res.status(204).end()