aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-03-19 09:26:50 +0100
committerChocobozzz <me@florianbigard.com>2019-03-19 09:26:50 +0100
commit0f6acda11681de90d38dd18669863c6e270851ee (patch)
treeb3b28e00d539645f5a810202dc8afada289e7b2e /server/lib
parent9a18a6252071cf21b18f82a24bb63078abb75bc1 (diff)
downloadPeerTube-0f6acda11681de90d38dd18669863c6e270851ee.tar.gz
PeerTube-0f6acda11681de90d38dd18669863c6e270851ee.tar.zst
PeerTube-0f6acda11681de90d38dd18669863c6e270851ee.zip
Does exist
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/redis.ts4
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