Fix automatic choser issue

This commit is contained in:
Kasper Rynning-Tønnesen
2020-04-17 15:50:22 +02:00
parent cab623b3f7
commit 7aa47b08ad
5 changed files with 14 additions and 6 deletions

View File

@@ -86,7 +86,7 @@ router.route("/log").post(mustBeAuthenticated, async (req, res) => {
let wonWine = await _wineFunctions.findSaveWine(currentWinner);
winesThisDate.push(wonWine);
await _personFunctions.findSavePerson(currentWinner, wonWine);
await _personFunctions.findSavePerson(currentWinner, wonWine, date);
}
let purchase = new Purchase({