#4
All checks were successful
Deploy / deploy (push) Successful in 44s

This commit is contained in:
Никита Круглицкий 2025-10-04 23:59:48 +06:00
parent 80c53a079b
commit 189404e22c

View File

@ -401,7 +401,7 @@ export default function (io: SocketServer, router: types.Router) {
async function getJoinedSockets(excludeId?: string) { async function getJoinedSockets(excludeId?: string) {
const sockets = await namespace.fetchSockets() const sockets = await namespace.fetchSockets()
return sockets.filter(socket => socket.data.joined && (excludeId && excludeId !== socket.id)) return sockets.filter(socket => socket.data.joined && (excludeId ? excludeId !== socket.id : true))
} }
async function createConsumer( async function createConsumer(