From d34e68ca25bb948bdf528eda1adbaf8b7d01e4ad Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Thu, 6 Mar 2014 15:31:10 -0500 Subject: [PATCH] convert score to int in mongo --- src/database/mongo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/database/mongo.js b/src/database/mongo.js index af913ea9e1..a9cc09c2d4 100644 --- a/src/database/mongo.js +++ b/src/database/mongo.js @@ -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) {