use valueToString in sortedSetIncrBy

v1.18.x
barisusakli 9 years ago
parent 920bc213d3
commit 17b4dd85e7

@ -520,7 +520,7 @@ module.exports = function(db, module) {
return callback();
}
var data = {};
value = helpers.fieldToString(value);
value = helpers.valueToString(value);
data.score = parseInt(increment, 10);
db.collection('objects').findAndModify({_key: key, value: value}, {}, {$inc: data}, {new: true, upsert: true}, function(err, result) {

Loading…
Cancel
Save