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

View File

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