Incorrect sort order for lottery/by-name #55

Merged
KevinMidboe merged 2 commits from bug/54 into master 2020-10-19 08:05:31 +00:00
Showing only changes of commit 82512fa4ba - Show all commits

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