mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
duh
This commit is contained in:
@@ -14,10 +14,7 @@ module.exports = function(Topics) {
|
||||
Topics.setTopicField(tid, 'deleted', 1, next);
|
||||
},
|
||||
function(next) {
|
||||
Topics.removeRecent(tid, next);
|
||||
},
|
||||
function(next) {
|
||||
db.sortedSetsRemove(['topics:posts', 'topics:views'], tid, next);
|
||||
db.sortedSetsRemove(['topics:recent', 'topics:posts', 'topics:views'], tid, next);
|
||||
}
|
||||
], callback);
|
||||
};
|
||||
|
||||
@@ -62,8 +62,4 @@ module.exports = function(Topics) {
|
||||
callback = callback || function() {};
|
||||
db.sortedSetAdd('topics:recent', timestamp, tid, callback);
|
||||
};
|
||||
|
||||
Topics.removeRecent = function(tid, callback) {
|
||||
db.sortedSetRemove('topics:recent', tid, callback);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user