mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-24 06:01:26 -05:00
Fix bug with Giveaways
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.
This commit is contained in:
+1
-1
@@ -13202,7 +13202,7 @@ setInterval(function () {
|
|||||||
to: winner.name,
|
to: winner.name,
|
||||||
subject: "You've won a giveaway!",
|
subject: "You've won a giveaway!",
|
||||||
message:
|
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),
|
rid: randomStr(50),
|
||||||
retries: 5,
|
retries: 5,
|
||||||
item: mitem,
|
item: mitem,
|
||||||
|
|||||||
Reference in New Issue
Block a user