Forgotten randomness -> options
authorBenjamin Auder <benjamin.auder@somewhere>
Sat, 10 Apr 2021 15:54:07 +0000 (17:54 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Sat, 10 Apr 2021 15:54:07 +0000 (17:54 +0200)
server/routes/games.js

index ede0e6d..fbda66f 100644 (file)
@@ -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);