From 17b4dd85e7d35b343134483265a9a6aa93639942 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 25 May 2016 21:18:14 +0300 Subject: [PATCH] use valueToString in sortedSetIncrBy --- src/database/mongo/sorted.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {