aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/redis.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/lib/redis.ts b/server/lib/redis.ts
index 52766663a..f544274ea 100644
--- a/server/lib/redis.ts
+++ b/server/lib/redis.ts
@@ -365,8 +365,10 @@ class Redis {
365 return this.client.incr(this.prefix + key) 365 return this.client.incr(this.prefix + key)
366 } 366 }
367 367
368 private exists (key: string) { 368 private async exists (key: string) {
369 return this.client.exists(this.prefix + key) 369 const result = await this.client.exists(this.prefix + key)
370
371 return result !== 0
370 } 372 }
371 373
372 private setExpiration (key: string, ms: number) { 374 private setExpiration (key: string, ms: number) {