aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/redis.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-03 09:33:05 +0100
committerChocobozzz <me@florianbigard.com>2021-02-03 09:45:08 +0100
commitba5a8d89bbf049e4afc41543bcc072cccdb02669 (patch)
tree6cc6b2dca17745cc0824c7ad4515f3bc4883fa4a /server/lib/redis.ts
parent29f148a61381727a432c22a71c7a2b7cc23d9c9e (diff)
downloadPeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.tar.gz
PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.tar.zst
PeerTube-ba5a8d89bbf049e4afc41543bcc072cccdb02669.zip
Update server dependencies
Diffstat (limited to 'server/lib/redis.ts')
-rw-r--r--server/lib/redis.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/redis.ts b/server/lib/redis.ts
index 257cce141..62641e313 100644
--- a/server/lib/redis.ts
+++ b/server/lib/redis.ts
@@ -263,7 +263,7 @@ class Redis {
263 } 263 }
264 264
265 private addToSet (key: string, value: string) { 265 private addToSet (key: string, value: string) {
266 return new Promise<string[]>((res, rej) => { 266 return new Promise<void>((res, rej) => {
267 this.client.sadd(this.prefix + key, value, err => err ? rej(err) : res()) 267 this.client.sadd(this.prefix + key, value, err => err ? rej(err) : res())
268 }) 268 })
269 } 269 }