Merge pull request #1664 from char101/patch-6

Fix callback execution in redis search
v1.18.x
Barış Soner Uşaklı 11 years ago
commit 3b55e65714

@ -27,13 +27,9 @@ module.exports = function(redisClient, module) {
module.searchRemove = function(key, id, callback) {
if(key === 'post') {
module.postSearch.remove(id);
module.postSearch.remove(id, callback);
} else if(key === 'topic') {
module.topicSearch.remove(id);
}
if (typeof callback === 'function') {
callback();
module.topicSearch.remove(id, callback);
}
};

Loading…
Cancel
Save