Skip to content

Node.js based forum software built for the modern web

use valueToString in sortedSetIncrBy

barisusakli17b4dd85e7d3
diff --git a/src/database/mongo/sorted.js b/src/database/mongo/sorted.js
index d8a9205ce0..9e9f72969e 100644
--- a/src/database/mongo/sorted.js
+++ b/src/database/mongo/sorted.js
@@ -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) {