Comments for readability.
This commit is contained in:
@@ -69,7 +69,7 @@ const all = (req, res) => {
|
|||||||
|
|
||||||
const latest = (req, res) => {
|
const latest = (req, res) => {
|
||||||
return groupHighscoreByDate()
|
return groupHighscoreByDate()
|
||||||
.then(lotteries => lotteries.shift())
|
.then(lotteries => lotteries.shift()) // first element in list
|
||||||
.then(latestLottery => resolveWineReferences(latestLottery, "winners"))
|
.then(latestLottery => resolveWineReferences(latestLottery, "winners"))
|
||||||
.then(lottery => res.send({
|
.then(lottery => res.send({
|
||||||
message: "Latest lottery!",
|
message: "Latest lottery!",
|
||||||
|
|||||||
Reference in New Issue
Block a user