diff --git a/lib/redis.js b/lib/redis.js index 762defb..197124e 100644 --- a/lib/redis.js +++ b/lib/redis.js @@ -2,7 +2,6 @@ * Module dependencies */ var redis = require('redis'); - exports.initialize = function initializeSchema(schema, callback) { if (!redis) return; @@ -548,7 +547,8 @@ BridgeToRedis.prototype.all = function all(model, filter, callback) { if (err) { return callback(err); } - + if(Array.isArray(replies)) + replies=replies.filter(function(value) { return value !== null; }); var objs = (replies || []).map(function (r) { return redis.fromDb(model, r); }); diff --git a/package.json b/package.json index d0b40af..73dc070 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jugglingdb-redis", - "version": "0.0.2-2", + "version": "0.0.2-3", "description": "Redis adapter for jugglingdb", "main": "index.js", "author": "Anatoliy Chakkaev ",