Skip to content

Commit

Permalink
fix: remove duplicate emitted event 'new_user'
Browse files Browse the repository at this point in the history
  • Loading branch information
abdou6666 committed Jan 22, 2025
1 parent 5d1793c commit 40b0a60
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 40b0a60

Please sign in to comment.