export const GameStorage =
{
// Optional callback to get error status
- // TODO: this func called from Hall seems to not work now...
add: function(game, callback)
{
dbOperation((db) => {
gid: gameId,
newObj:
{
+ // Some fields may be undefined:
chat: obj.chat,
- move: obj.move, //may be undefined...
+ move: obj.move,
fen: obj.fen,
score: obj.score,
scoreMsg: obj.scoreMsg,