mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 12:59:14 +00:00
Merge pull request #617 from Hexastack/fix/remove-duplicate-event-new-user
fix: remove duplicate emitted event 'new_users'
This commit is contained in:
commit
d6d757bf64
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user