fix(api): apply feedback

This commit is contained in:
yassinedorbozgithub
2025-05-13 10:58:51 +01:00
parent 9b97983977
commit 91cb7d93a4
2 changed files with 3 additions and 4 deletions

View File

@@ -435,8 +435,9 @@ export class WebsocketGateway
if (!sessionId) {
throw new Error('SessionId is required!');
}
const allSockets = await this.io.fetchSockets();
return (await this.io.fetchSockets()).filter(
return allSockets.filter(
({ handshake, data }) =>
!handshake.query.channel && data.sessionID === sessionId,
);