Skip to content

Commit

Permalink
Merge pull request #617 from Hexastack/fix/remove-duplicate-event-new…
Browse files Browse the repository at this point in the history
…-user

fix: remove duplicate emitted event 'new_users'
  • Loading branch information
marrouchi authored Jan 23, 2025
2 parents dee2eb5 + 40b0a60 commit d6d757b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion api/src/chat/services/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d6d757b

Please sign in to comment.