@ -544,8 +544,8 @@
value = value.toString();
}
var data = {
score:score,
value:value
score: parseInt(score, 10),
value: value
};
db.collection('objects').update({_key:key, value:value}, {$set:data}, {upsert:true, w: 1}, function(err, result) {