mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Merge branch 'feature/strong-model-types' into develop
This commit is contained in:
commit
5c5e587307
183 changed files with 2882 additions and 1235 deletions
|
@ -1,8 +1,8 @@
|
|||
import * as SocketIO from 'socket.io'
|
||||
import { authenticateSocket } from '../middlewares'
|
||||
import { UserNotificationModel } from '../models/account/user-notification'
|
||||
import { logger } from '../helpers/logger'
|
||||
import { Server } from 'http'
|
||||
import { UserNotificationModelForApi } from '@server/typings/models/user'
|
||||
|
||||
class PeerTubeSocket {
|
||||
|
||||
|
@ -34,7 +34,7 @@ class PeerTubeSocket {
|
|||
})
|
||||
}
|
||||
|
||||
sendNotification (userId: number, notification: UserNotificationModel) {
|
||||
sendNotification (userId: number, notification: UserNotificationModelForApi) {
|
||||
const sockets = this.userNotificationSockets[userId]
|
||||
|
||||
if (!sockets) return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue