mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 16:27:30 +02:00
part 2 of search changes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user