import { authenticateSocket } from '../middlewares'
import { logger } from '../helpers/logger'
import { Server } from 'http'
-import { UserNotificationModelForApi } from '@server/typings/models/user'
+import { UserNotificationModelForApi } from '@server/types/models/user'
class PeerTubeSocket {
if (!sockets) return
+ const notificationMessage = notification.toFormattedJSON()
for (const socket of sockets) {
- socket.emit('new-notification', notification.toFormattedJSON())
+ socket.emit('new-notification', notificationMessage)
}
}