diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-12 17:00:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-12 17:00:21 +0200 |
commit | 1a578165f9112fc2a9ebddea91d2258ebd1f6ae7 (patch) | |
tree | 79a52a00ff193b0703f0a209989174af609e337f | |
parent | 8bf8e56e01fdea28fcb2e5418bd3f6d5a76805fa (diff) | |
download | PeerTube-1a578165f9112fc2a9ebddea91d2258ebd1f6ae7.tar.gz PeerTube-1a578165f9112fc2a9ebddea91d2258ebd1f6ae7.tar.zst PeerTube-1a578165f9112fc2a9ebddea91d2258ebd1f6ae7.zip |
Fix lint
-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 | ||