mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-10 07:11:53 +00:00
Exclude events where leadervote is deselected
This commit is contained in:
parent
26e99f5015
commit
0192be3052
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ eventSchema.statics.playerSelected = function (user, data, gather) {
|
|||
eventSchema.statics.leaderVote = function (user, data, gather) {
|
||||
winston.info("Vote Data", JSON.stringify(user), JSON.stringify(data));
|
||||
const gatherer = gather.getGatherer({ id: data.leader.candidate });
|
||||
if (gatherer === null) return;
|
||||
this.create({
|
||||
eventType: "gather:vote:leader",
|
||||
description: `${user.username} voted for ${gatherer.user.username}`,
|
||||
|
|
Loading…
Reference in a new issue