Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: missing payload new_users events influxdb #557

Closed
wants to merge 0 commits into from

Conversation

abdou6666
Copy link
Member

Motivation

This PR fixes a missing payload when emitting new_users event for influxdb, influxdb expects the subscriber hook:stats:entry ligne 644

Fixes #556

Type of change:

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have performed a self-review of my own code

Comment on lines 249 to 254
this.eventEmitter.emit(
'hook:stats:entry',
BotStatsType.new_users,
'New users',
subscriber,
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
this.eventEmitter.emit(
'hook:stats:entry',
BotStatsType.new_users,
'New users',
subscriber,
);

This can safely be removed cause we are already emitting an event in postCreate() : Check api/src/chat/repositories/subscriber.repository.ts

Thank you for spotting this 🙏

@abdou6666 abdou6666 closed this Jan 22, 2025
@abdou6666 abdou6666 force-pushed the fix/missing-payload-influx-new-users-event branch from 1737319 to 5d1793c Compare January 22, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 [BUG] - Missing Payload when emitting 'new_users' event influxdb
3 participants