aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/peertube-socket.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-12 17:00:21 +0200
committerChocobozzz <me@florianbigard.com>2021-04-12 17:00:21 +0200
commit1a578165f9112fc2a9ebddea91d2258ebd1f6ae7 (patch)
tree79a52a00ff193b0703f0a209989174af609e337f /server/lib/peertube-socket.ts
parent8bf8e56e01fdea28fcb2e5418bd3f6d5a76805fa (diff)
downloadPeerTube-1a578165f9112fc2a9ebddea91d2258ebd1f6ae7.tar.gz
PeerTube-1a578165f9112fc2a9ebddea91d2258ebd1f6ae7.tar.zst
PeerTube-1a578165f9112fc2a9ebddea91d2258ebd1f6ae7.zip
Fix lint
Diffstat (limited to 'server/lib/peertube-socket.ts')
-rw-r--r--server/lib/peertube-socket.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/peertube-socket.ts b/server/lib/peertube-socket.ts
index c91407a59..0740e378e 100644
--- a/server/lib/peertube-socket.ts
+++ b/server/lib/peertube-socket.ts
@@ -42,12 +42,14 @@ class PeerTubeSocket {
42 socket.on('subscribe', ({ videoId }) => { 42 socket.on('subscribe', ({ videoId }) => {
43 if (!isIdValid(videoId)) return 43 if (!isIdValid(videoId)) return
44 44
45 /* eslint-disable @typescript-eslint/no-floating-promises */
45 socket.join(videoId) 46 socket.join(videoId)
46 }) 47 })
47 48
48 socket.on('unsubscribe', ({ videoId }) => { 49 socket.on('unsubscribe', ({ videoId }) => {
49 if (!isIdValid(videoId)) return 50 if (!isIdValid(videoId)) return
50 51
52 /* eslint-disable @typescript-eslint/no-floating-promises */
51 socket.leave(videoId) 53 socket.leave(videoId)
52 }) 54 })
53 }) 55 })