mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-04 14:50:47 +01:00
convert score to int in mongo
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user