fixing issue where after a user changed their username, the new name was not reindexed by Reds

This commit is contained in:
Julian Lam
2014-01-16 12:34:48 -05:00
parent 72fd78ac26
commit a48a7acd51
3 changed files with 30 additions and 41 deletions

View File

@@ -115,7 +115,7 @@
}
}
module.searchRemove = function(key, id) {
module.searchRemove = function(key, id, callback) {
if(key === 'post') {
postSearch.remove(id);
} else if(key === 'topic') {
@@ -123,6 +123,10 @@
} else if(key === 'user') {
userSearch.remove(id);
}
if (typeof callback === 'function') {
callback()
}
}
module.flushdb = function(callback) {