From ab4f34d6709f5a61dd418019057a15b735e5389c Mon Sep 17 00:00:00 2001 From: Charles Chong Date: Wed, 19 Mar 2014 11:44:47 -0700 Subject: [PATCH] Fixed bugs with gameIDsByUserID and developer game list filter --- lib/game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/game.js b/lib/game.js index 5491f0c..4a96722 100644 --- a/lib/game.js +++ b/lib/game.js @@ -18,9 +18,9 @@ function newGame(client, data, userID, callback) { if (err) { callback('db_error'); } else if (!resp) { - resp = JSON.stringify([newGameData.id]); + resp = JSON.stringify([data.id]); } else { - resp.push(newGameData.id); + resp.push(data.id); } client.hset('gameIDsByUserID', userID, resp); callback(null, data);