diff options
Diffstat (limited to 'server/lib/peertube-socket.ts')
-rw-r--r-- | server/lib/peertube-socket.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/peertube-socket.ts b/server/lib/peertube-socket.ts index eb84ecd4b..1c7b09175 100644 --- a/server/lib/peertube-socket.ts +++ b/server/lib/peertube-socket.ts | |||
@@ -1,8 +1,8 @@ | |||
1 | import * as SocketIO from 'socket.io' | 1 | import * as SocketIO from 'socket.io' |
2 | import { authenticateSocket } from '../middlewares' | 2 | import { authenticateSocket } from '../middlewares' |
3 | import { UserNotificationModel } from '../models/account/user-notification' | ||
4 | import { logger } from '../helpers/logger' | 3 | import { logger } from '../helpers/logger' |
5 | import { Server } from 'http' | 4 | import { Server } from 'http' |
5 | import { UserNotificationModelForApi } from '@server/typings/models/user' | ||
6 | 6 | ||
7 | class PeerTubeSocket { | 7 | class PeerTubeSocket { |
8 | 8 | ||
@@ -32,7 +32,7 @@ class PeerTubeSocket { | |||
32 | }) | 32 | }) |
33 | } | 33 | } |
34 | 34 | ||
35 | sendNotification (userId: number, notification: UserNotificationModel) { | 35 | sendNotification (userId: number, notification: UserNotificationModelForApi) { |
36 | const socket = this.userNotificationSockets[userId] | 36 | const socket = this.userNotificationSockets[userId] |
37 | 37 | ||
38 | if (!socket) return | 38 | if (!socket) return |