mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
remove async from Feed.updateTopic
This commit is contained in:
@@ -29,15 +29,8 @@
|
||||
Feed.updateTopic = function(tid, cid) {
|
||||
var cache_time_in_seconds = 60;
|
||||
|
||||
function getTopicData(next) {
|
||||
topics.getTopicById(tid, 0, function(topicData) {
|
||||
next(null, topicData);
|
||||
});
|
||||
}
|
||||
|
||||
async.parallel([getTopicData], function(err, results) {
|
||||
var topicData = results[0],
|
||||
location = '/topic/' + topicData.slug,
|
||||
var location = '/topic/' + topicData.slug,
|
||||
xml_url = '/topic/' + tid + '.rss';
|
||||
|
||||
var post = topicData.main_posts[0];
|
||||
|
||||
Reference in New Issue
Block a user