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

@@ -1,7 +1,7 @@
const path = require("path");
const Highscore = require(path.join(__dirname + "/../schemas/Highscore"));
async function findSavePerson(foundWinner, wonWine) {
async function findSavePerson(foundWinner, wonWine, date) {
let person = await Highscore.findOne({
name: foundWinner.name
});