Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
fix(statsPublishing): properly publish the exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenShibata committed Jul 5, 2023
1 parent 9457481 commit 2bb57f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/listeners/guildMemberUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class GuildMemberUpdateListener extends Listener {
if (oldMember.roles.cache.size !== newMember.roles.cache.size) {
if (amqpUrl !== undefined) {
const payload = this.container.client.util.fetchMembership();
this.container.client.amqpWebsite.publish("", "MEMBERSHIP_UPDATE", payload);
this.container.client.amqp.publish("WEBSITE", "MEMBERSHIP_UPDATE", Buffer.from(JSON.stringify(payload)));
}
}
}
Expand Down

0 comments on commit 2bb57f0

Please sign in to comment.