diff options
author | Chocobozzz <me@florianbigard.com> | 2022-01-14 14:15:23 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-01-14 14:15:23 +0100 |
commit | c0d2eac3329ec4454a178a4442bdcf20c388c8ff (patch) | |
tree | 7554ccac3b1cb43605f524ba6f9770ac6c3ed30d /server/lib | |
parent | c9c0cc5179359b6a9fa7c46bf73df99c4f72c1fc (diff) | |
download | PeerTube-c0d2eac3329ec4454a178a4442bdcf20c388c8ff.tar.gz PeerTube-c0d2eac3329ec4454a178a4442bdcf20c388c8ff.tar.zst PeerTube-c0d2eac3329ec4454a178a4442bdcf20c388c8ff.zip |
Update server dependencies
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/redis.ts | 6 |
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) { |