Skip to content

Node.js based forum software built for the modern web

mongodb list fix

barisusaklid0a0d02d3151
diff --git a/src/database/mongo/list.js b/src/database/mongo/list.js
index 7475bd9c08..772f3ab7f4 100644
--- a/src/database/mongo/list.js
+++ b/src/database/mongo/list.js
@@ -52,7 +52,7 @@ module.exports = function(db, module) {
return;
}
- db.collection('objects').update({_key: key}, {$set: value}, function(err, result) {
+ db.collection('objects').update({_key: key}, {$set: {array: value }}, function(err, result) {
if(typeof callback === 'function') {
callback(err, (value && value.length) ? value[0] : null);
}