diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-19 09:26:50 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-03-19 09:26:50 +0100 |
commit | 0f6acda11681de90d38dd18669863c6e270851ee (patch) | |
tree | b3b28e00d539645f5a810202dc8afada289e7b2e /server/controllers/api/videos/index.ts | |
parent | 9a18a6252071cf21b18f82a24bb63078abb75bc1 (diff) | |
download | PeerTube-0f6acda11681de90d38dd18669863c6e270851ee.tar.gz PeerTube-0f6acda11681de90d38dd18669863c6e270851ee.tar.zst PeerTube-0f6acda11681de90d38dd18669863c6e270851ee.zip |
Does exist
Diffstat (limited to 'server/controllers/api/videos/index.ts')
-rw-r--r-- | server/controllers/api/videos/index.ts | 2 |
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() |