diff --git a/api/update.js b/api/update.js index c2961e3..4642cbe 100644 --- a/api/update.js +++ b/api/update.js @@ -74,6 +74,8 @@ router.route("/log").post(async (req, res) => { wonWine = newWonWine; } else { wonWine.occurences += 1; + wonWine.image = currentWinner.wine.image; + wonWine.id = currentWinner.wine.id; await wonWine.save(); }