X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=server%2Froutes%2Fgames.js;h=128d9eeb0a1d4a950f89fe4712de1992e807e057;hp=3b91e8b771070b0bd8c71b31b12a716041c76a99;hb=f41ce5806b989c06091a403d7e26ff3c457650c9;hpb=5f13148449c73de92993b7961c077167563b84e5 diff --git a/server/routes/games.js b/server/routes/games.js index 3b91e8b7..128d9eeb 100644 --- a/server/routes/games.js +++ b/server/routes/games.js @@ -54,8 +54,7 @@ router.get("/games", access.ajax, (req,res) => { // New move + fen update + score, potentially // TODO: if newmove fail, takeback in GUI router.put("/games", access.logged, access.ajax, (req,res) => { - const gid = req.body.gid; - const oppId = req.body.oppId; + const gid = req.body.gid; const obj = req.body.newObj; GameModel.update(gid, obj, (err) => { if (!!err)