mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
Merge pull request #574 from Hexastack/fix/event-missing-payload
fix: event returning users missing required payload
This commit is contained in:
commit
7cf87607e0
@ -75,7 +75,7 @@ export class BotStatsService extends BaseService<BotStats> {
|
|||||||
if (now - +subscriber.lastvisit > config.analytics.thresholds.loyalty) {
|
if (now - +subscriber.lastvisit > config.analytics.thresholds.loyalty) {
|
||||||
this.eventEmitter.emit(
|
this.eventEmitter.emit(
|
||||||
'hook:stats:entry',
|
'hook:stats:entry',
|
||||||
'returning_users',
|
BotStatsType.returning_users,
|
||||||
'Loyalty',
|
'Loyalty',
|
||||||
subscriber,
|
subscriber,
|
||||||
);
|
);
|
||||||
@ -85,8 +85,9 @@ export class BotStatsService extends BaseService<BotStats> {
|
|||||||
if (now - +subscriber.lastvisit > config.analytics.thresholds.returning) {
|
if (now - +subscriber.lastvisit > config.analytics.thresholds.returning) {
|
||||||
this.eventEmitter.emit(
|
this.eventEmitter.emit(
|
||||||
'hook:stats:entry',
|
'hook:stats:entry',
|
||||||
'returning_users',
|
BotStatsType.returning_users,
|
||||||
'Returning users',
|
'Returning users',
|
||||||
|
subscriber,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user