mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
use valueToString in sortedSetIncrBy
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user