diff options
-rw-r--r-- | server/lib/peertube-socket.ts | 2 | ||||
-rw-r--r-- | shared/models/users/user.model.ts | 2 |
2 files changed, 3 insertions, 1 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 | }) |
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts index 2c24d81be..7a982c2e5 100644 --- a/shared/models/users/user.model.ts +++ b/shared/models/users/user.model.ts | |||
@@ -38,7 +38,7 @@ export interface User { | |||
38 | abusesAcceptedCount?: number | 38 | abusesAcceptedCount?: number |
39 | abusesCreatedCount?: number | 39 | abusesCreatedCount?: number |
40 | 40 | ||
41 | videoCommentsCount? : number | 41 | videoCommentsCount?: number |
42 | 42 | ||
43 | theme: string | 43 | theme: string |
44 | 44 | ||