v1.18.x
barisusakli 10 years ago
parent 653850661e
commit a75727bbbd

@ -14,10 +14,7 @@ module.exports = function(Topics) {
Topics.setTopicField(tid, 'deleted', 1, next); Topics.setTopicField(tid, 'deleted', 1, next);
}, },
function(next) { function(next) {
Topics.removeRecent(tid, next); db.sortedSetsRemove(['topics:recent', 'topics:posts', 'topics:views'], tid, next);
},
function(next) {
db.sortedSetsRemove(['topics:posts', 'topics:views'], tid, next);
} }
], callback); ], callback);
}; };

@ -62,8 +62,4 @@ module.exports = function(Topics) {
callback = callback || function() {}; callback = callback || function() {};
db.sortedSetAdd('topics:recent', timestamp, tid, callback); db.sortedSetAdd('topics:recent', timestamp, tid, callback);
}; };
Topics.removeRecent = function(tid, callback) {
db.sortedSetRemove('topics:recent', tid, callback);
};
}; };

Loading…
Cancel
Save