diff --git a/src/database/mongo.js b/src/database/mongo.js index 247b53a480..fe81e0fd07 100644 --- a/src/database/mongo.js +++ b/src/database/mongo.js @@ -184,7 +184,7 @@ module.incrObjectFieldBy = function(key, field, value, callback) { var data = {}; data[field] = value; - db.collection('objects').update({_key:key}, {$inc : data}, {upsert:true}, function(err, result) { + db.collection('objects').update({_key:key}, {$inc : data}, {upsert:true}, function(err, result) { module.getObjectField(key, field, function(err, value) { callback(err, value); });