Skip to content

Commit

Permalink
Fix bug with Giveaways
Browse files Browse the repository at this point in the history
This fixes a bug with giveaways. Giveaways would previously list all of the participants of a giveaway in the mail, but at some point a breaking change occurred, and instead it lists [object Object] multiple times.
  • Loading branch information
FreezePhoenix authored Mar 14, 2024
1 parent 2f6b148 commit 816946a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13202,7 +13202,7 @@ setInterval(function () {
to: winner.name,
subject: "You've won a giveaway!",
message:
"Congratulations, you won " + player.name + "'s giveaway. Participants were: " + list.join(", "),
"Congratulations, you won " + player.name + "'s giveaway. Participants were: " + list.map(e=>e.name).join(", "),
rid: randomStr(50),
retries: 5,
item: mitem,
Expand Down

0 comments on commit 816946a

Please sign in to comment.