part 2 of search changes

This commit is contained in:
barisusakli
2015-03-15 00:12:52 -04:00
parent c7128bcc98
commit e2196af8ab
3 changed files with 25 additions and 54 deletions

View File

@@ -64,7 +64,9 @@ module.exports = function(db, module) {
if (!id) {
return callback();
}
db.collection('search').remove({key: key, id: id}, callback);
db.collection('search').remove({key: key, id: id}, function(err, res) {
callback(err);
});
};
module.flushdb = function(callback) {