Merge pull request #617 from Hexastack/fix/remove-duplicate-event-new-user

fix: remove duplicate emitted event 'new_users'
This commit is contained in:
Med Marrouchi 2025-01-23 11:16:37 +01:00 committed by GitHub
commit d6d757bf64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -258,7 +258,6 @@ export class ChatService {
if (!subscriber) { if (!subscriber) {
const subscriberData = await handler.getSubscriberData(event); const subscriberData = await handler.getSubscriberData(event);
this.eventEmitter.emit('hook:stats:entry', 'new_users', 'New users');
subscriberData.channel = event.getChannelData(); subscriberData.channel = event.getChannelData();
subscriber = await this.subscriberService.create(subscriberData); subscriber = await this.subscriberService.create(subscriberData);