1
0
Fork 0
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:
Chocobozzz 2019-08-22 10:43:11 +02:00
commit 5c5e587307
No known key found for this signature in database
GPG key ID: 583A612D890159BE
183 changed files with 2882 additions and 1235 deletions

View file

@ -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