From: Benjamin Auder Date: Sat, 10 Apr 2021 15:54:07 +0000 (+0200) Subject: Forgotten randomness -> options X-Git-Url: https://git.auder.net/doc/html/assets/current/gitweb.css?a=commitdiff_plain;h=fc6d8c37cb0fa882041ca2690d63afeeb5099750;p=vchess.git Forgotten randomness -> options --- diff --git a/server/routes/games.js b/server/routes/games.js index ede0e6dd..fbda66f8 100644 --- a/server/routes/games.js +++ b/server/routes/games.js @@ -26,7 +26,7 @@ router.post("/games", access.logged, access.ajax, (req,res) => { ) { if (!!cid) ChallengeModel.remove(cid); GameModel.create( - gameInfo.vid, gameInfo.fen, gameInfo.randomness, + gameInfo.vid, gameInfo.fen, gameInfo.options, gameInfo.cadence, gameInfo.players, (err, ret) => { const oppIdx = (gameInfo.players[0].id == req.userId ? 1 : 0);