Merge pull request #469 from Hexastack/fix/unecessary-ws-broad
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker NLU Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run

fix: remove unecessary ws broadcast
This commit is contained in:
Med Marrouchi 2024-12-19 14:51:10 +01:00 committed by GitHub
commit 06b0e54dbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -250,11 +250,6 @@ export class ChatService {
// Already existing user profile // Already existing user profile
// Exec lastvisit hook // Exec lastvisit hook
this.eventEmitter.emit('hook:user:lastvisit', subscriber); this.eventEmitter.emit('hook:user:lastvisit', subscriber);
this.websocketGateway.broadcast(
subscriber,
event.getEventType(),
event._adapter.raw,
);
} }
this.websocketGateway.broadcastSubscriberUpdate(subscriber); this.websocketGateway.broadcastSubscriberUpdate(subscriber);