mongodb list fix

v1.18.x
barisusakli 11 years ago
parent e8b767d0dd
commit d0a0d02d31

@ -52,7 +52,7 @@ module.exports = function(db, module) {
return; 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') { if(typeof callback === 'function') {
callback(err, (value && value.length) ? value[0] : null); callback(err, (value && value.length) ? value[0] : null);
} }

Loading…
Cancel
Save