Return object renamed from wins --> highscore.

This commit is contained in:
2020-10-11 18:37:41 +02:00
committed by KevinMidboe
parent 61fad22ef4
commit 98e04ecd63

View File

@@ -120,7 +120,7 @@ const byName = (req, res) => {
.then(highscore => res.send({
message: `Lottery winnings for name: ${ name }.`,
name: highscore.name,
wins: highscore.wins
highscore: highscore.wins
}))
}