]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/videos/index.ts
Does exist
[github/Chocobozzz/PeerTube.git] / server / controllers / api / videos / index.ts
index 6ac13e6a4401ad996c25ff0b19b09844a67e57a4..27f67895e6db83dcf521fb969a41362a43ede6fe 100644 (file)
@@ -421,7 +421,7 @@ async function viewVideo (req: express.Request, res: express.Response) {
   const videoInstance = res.locals.video
 
   const ip = req.ip
-  const exists = await Redis.Instance.isVideoIPViewExists(ip, videoInstance.uuid)
+  const exists = await Redis.Instance.doesVideoIPViewExist(ip, videoInstance.uuid)
   if (exists) {
     logger.debug('View for ip %s and video %s already exists.', ip, videoInstance.uuid)
     return res.status(204).end()