removed debug

v1.18.x
barisusakli 11 years ago
parent 97cb138cfc
commit 451c5b40fd

@ -25,10 +25,6 @@ module.exports = function(db, module) {
};
module.getObjects = function(keys, callback) {
if (keys.length > helpers.KEY_LIMIT) {
var e = new Error('too many keys');
winston.warn('[HASH - TOO_MANY_KEYS] ' + keys.length + ' ' + keys[0] + ' ' + keys[keys.length - 1] + '\n', e.stack);
}
db.collection('objects').find({_key: {$in: keys}}, {_id: 0}).toArray(function(err, data) {
if(err) {
return callback(err);
@ -59,11 +55,6 @@ module.exports = function(db, module) {
};
module.getObjectsFields = function(keys, fields, callback) {
if (keys.length > helpers.KEY_LIMIT) {
var e = new Error('too many keys');
winston.warn('[HASH - TOO_MANY_KEYS] ' + keys.length + ' ' + keys[0] + ' ' + keys[keys.length - 1] + '\n', e.stack);
}
var _fields = {
_id: 0,
_key: 1

@ -34,6 +34,4 @@ helpers.valueToString = function(value) {
helpers.noop = function() {};
helpers.KEY_LIMIT = 300;
module.exports = helpers;

@ -123,10 +123,6 @@ module.exports = function(db, module) {
};
module.getSetsMembers = function(keys, callback) {
if (keys.length > helpers.KEY_LIMIT) {
var e = new Error('too many keys');
winston.warn('[SET - TOO_MANY_KEYS] ' + keys.length + ' ' + keys[0] + ' ' + keys[keys.length - 1] + '\n', e.stack);
}
db.collection('objects').find({_key: {$in: keys}}, {_key: 1, members: 1}).toArray(function(err, data) {
if (err) {
return callback(err);

Loading…
Cancel
Save