From 816946a0d95ed7ea0fb3e964d30b1dd7cbea371f Mon Sep 17 00:00:00 2001 From: FreezePhoenix <24441367+FreezePhoenix@users.noreply.github.com> Date: Thu, 14 Mar 2024 19:49:17 -0400 Subject: [PATCH] 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. --- node/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/server.js b/node/server.js index b4fae70..665fca1 100644 --- a/node/server.js +++ b/node/server.js @@ -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,