cleanup of previous server crashing workaround, i think i figured it out

This commit is contained in:
Tyler Renelle
2012-10-28 15:26:43 -04:00
parent 198987dfa0
commit 45b7c906c6
2 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ module.exports = function(expressApp, root, derby) {
return res.send(500, err);
}
userObj = user.get();
if (!(userObj && userObj.stats && userObj.stats.money && !_.isEmpty(userObj.tasks))) {
if (!(userObj && !_.isEmpty(userObj.stats))) {
console.log({
taskId: taskId,
direction: direction,