diff --git a/api/lottery.js b/api/lottery.js index 62ee497..0f7d218 100644 --- a/api/lottery.js +++ b/api/lottery.js @@ -69,7 +69,7 @@ const all = (req, res) => { const latest = (req, res) => { return groupHighscoreByDate() - .then(lotteries => lotteries.shift()) + .then(lotteries => lotteries.shift()) // first element in list .then(latestLottery => resolveWineReferences(latestLottery, "winners")) .then(lottery => res.send({ message: "Latest lottery!",