fixes 2065: optimisation (#2073)
* fixes 2065: optimisation * Update peertube-socket.ts
This commit is contained in:
parent
d11c28a36b
commit
20ec03846d
|
@ -39,8 +39,9 @@ class PeerTubeSocket {
|
||||||
|
|
||||||
if (!sockets) return
|
if (!sockets) return
|
||||||
|
|
||||||
|
const notificationMessage = notification.toFormattedJSON()
|
||||||
for (const socket of sockets) {
|
for (const socket of sockets) {
|
||||||
socket.emit('new-notification', notification.toFormattedJSON())
|
socket.emit('new-notification', notificationMessage)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue