From 40b0a605a2ca6b2261a4546a8ce84fbef791031e Mon Sep 17 00:00:00 2001 From: abdou6666 Date: Wed, 22 Jan 2025 17:56:37 +0100 Subject: [PATCH] fix: remove duplicate emitted event 'new_user' --- api/src/chat/services/chat.service.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/api/src/chat/services/chat.service.ts b/api/src/chat/services/chat.service.ts index 6f7512fd..ec7b69e6 100644 --- a/api/src/chat/services/chat.service.ts +++ b/api/src/chat/services/chat.service.ts @@ -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);