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/lib/redis.ts | |
parent | 9a18a6252071cf21b18f82a24bb63078abb75bc1 (diff) | |
download | PeerTube-0f6acda11681de90d38dd18669863c6e270851ee.tar.gz PeerTube-0f6acda11681de90d38dd18669863c6e270851ee.tar.zst PeerTube-0f6acda11681de90d38dd18669863c6e270851ee.zip |
Does exist
Diffstat (limited to 'server/lib/redis.ts')
-rw-r--r-- | server/lib/redis.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/redis.ts b/server/lib/redis.ts index 3628c0583..d85dbe2b5 100644 --- a/server/lib/redis.ts +++ b/server/lib/redis.ts | |||
@@ -88,7 +88,7 @@ class Redis { | |||
88 | return this.setValue(this.generateContactFormKey(ip), '1', CONTACT_FORM_LIFETIME) | 88 | return this.setValue(this.generateContactFormKey(ip), '1', CONTACT_FORM_LIFETIME) |
89 | } | 89 | } |
90 | 90 | ||
91 | async isContactFormIpExists (ip: string) { | 91 | async doesContactFormIpExist (ip: string) { |
92 | return this.exists(this.generateContactFormKey(ip)) | 92 | return this.exists(this.generateContactFormKey(ip)) |
93 | } | 93 | } |
94 | 94 | ||
@@ -98,7 +98,7 @@ class Redis { | |||
98 | return this.setValue(this.generateViewKey(ip, videoUUID), '1', VIDEO_VIEW_LIFETIME) | 98 | return this.setValue(this.generateViewKey(ip, videoUUID), '1', VIDEO_VIEW_LIFETIME) |
99 | } | 99 | } |
100 | 100 | ||
101 | async isVideoIPViewExists (ip: string, videoUUID: string) { | 101 | async doesVideoIPViewExist (ip: string, videoUUID: string) { |
102 | return this.exists(this.generateViewKey(ip, videoUUID)) | 102 | return this.exists(this.generateViewKey(ip, videoUUID)) |
103 | } | 103 | } |
104 | 104 | ||