deleting a user will delete topic tags too

This commit is contained in:
barisusakli
2014-05-21 19:39:10 -04:00
parent df73ceaeb7
commit d8fd29581e
2 changed files with 27 additions and 24 deletions

View File

@@ -153,7 +153,6 @@ module.exports = function(User) {
}
function deleteTopic(tid, callback) {
async.parallel([
function(next) {
db.delete('tid:' + tid + ':followers', next);
@@ -175,6 +174,9 @@ module.exports = function(User) {
},
function(next) {
deleteTopicFromCategory(tid, next);
},
function(next) {
topics.deleteTopicTags(tid, next);
}
], function(err) {
if (err) {