Comments for readability.

This commit is contained in:
2020-10-19 10:01:53 +02:00
parent 56edf7e4d6
commit 82512fa4ba

View File

@@ -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!",