Claim: Fix wrong user passed to actionHandler
This commit is contained in:
@@ -142,7 +142,7 @@ module.exports = {
|
|||||||
if (claimUser) {
|
if (claimUser) {
|
||||||
//Update card with the user id
|
//Update card with the user id
|
||||||
cards[cardId].userId = claimUser.id;
|
cards[cardId].userId = claimUser.id;
|
||||||
await UserUtils.actionHandler(user, "claim");
|
await UserUtils.actionHandler(claimUser, "claim");
|
||||||
await cards[cardId].save();
|
await cards[cardId].save();
|
||||||
let historyEntry = {
|
let historyEntry = {
|
||||||
userId: claimUser.id,
|
userId: claimUser.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user