mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Migrate eslint to v9
This commit is contained in:
parent
bad8ea2c2e
commit
034e1bf328
106 changed files with 2130 additions and 1445 deletions
|
@ -11,10 +11,9 @@ import { authenticateRunnerSocket, authenticateSocket } from '../middlewares/ind
|
|||
import { isDevInstance } from '@peertube/peertube-node-utils'
|
||||
|
||||
class PeerTubeSocket {
|
||||
|
||||
private static instance: PeerTubeSocket
|
||||
|
||||
private userNotificationSockets: { [ userId: number ]: Socket[] } = {}
|
||||
private userNotificationSockets: { [userId: number]: Socket[] } = {}
|
||||
private liveVideosNamespace: Namespace
|
||||
private readonly runnerSockets = new Set<Socket>()
|
||||
|
||||
|
@ -51,16 +50,14 @@ class PeerTubeSocket {
|
|||
const videoId = params.videoId + ''
|
||||
if (!isIdValid(videoId)) return
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-floating-promises */
|
||||
socket.join(videoId)
|
||||
void socket.join(videoId)
|
||||
})
|
||||
|
||||
socket.on('unsubscribe', params => {
|
||||
const videoId = params.videoId + ''
|
||||
if (!isIdValid(videoId)) return
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-floating-promises */
|
||||
socket.leave(videoId)
|
||||
void socket.leave(videoId)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue