From: Benjamin Auder Date: Sat, 10 Apr 2021 15:54:07 +0000 (+0200) Subject: Forgotten randomness -> options X-Git-Url: https://git.auder.net/variants/Chakart/%7B%7B%20path%28%27mixstore_user_admin_delete%27%2C%20%7B%20id:%20user.id%20%7D%29%20%7D%7D?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);