From cecc9c4c9dc69dec44b940ebffa2392dc3f8a020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Gro=C3=9F?= Date: Mon, 13 Mar 2023 16:57:40 +0100 Subject: [PATCH] Claim: Fix wrong user passed to actionHandler --- commands/drop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/drop.js b/commands/drop.js index 174f5c2..d2a09e6 100644 --- a/commands/drop.js +++ b/commands/drop.js @@ -142,7 +142,7 @@ module.exports = { if (claimUser) { //Update card with the user id cards[cardId].userId = claimUser.id; - await UserUtils.actionHandler(user, "claim"); + await UserUtils.actionHandler(claimUser, "claim"); await cards[cardId].save(); let historyEntry = { userId: claimUser.id,