From fc6d8c37cb0fa882041ca2690d63afeeb5099750 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Sat, 10 Apr 2021 17:54:07 +0200
Subject: [PATCH] Forgotten randomness -> options

---
 server/routes/games.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.44.0