Add debug trace to understand why corr move 1 isn't recorded
authorBenjamin Auder <benjamin.auder@somewhere>
Wed, 4 Mar 2020 23:01:30 +0000 (00:01 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Wed, 4 Mar 2020 23:01:30 +0000 (00:01 +0100)
server/models/Game.js

index 4d06e48..e970bfb 100644 (file)
@@ -244,7 +244,7 @@ const GameModel =
       }
 
 
       }
 
 
-//return cb({errmsg: JSON.stringify(obj.move)});
+return cb({errmsg: JSON.stringify(obj.move) + "  " + (!!obj.move)});
 
 
       // NOTE: move, chat and delchat are mutually exclusive
 
 
       // NOTE: move, chat and delchat are mutually exclusive