From 0a4ac1a346348f6ad5f9a6719a44a5a3864deca9 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Tue, 2 Jul 2013 19:51:14 -0400 Subject: [PATCH] remove async from Feed.updateTopic --- src/feed.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/feed.js b/src/feed.js index bea1bde19a..991021b6c7 100644 --- a/src/feed.js +++ b/src/feed.js @@ -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, + topics.getTopicById(tid, 0, function(topicData) { + var location = '/topic/' + topicData.slug, xml_url = '/topic/' + tid + '.rss'; var post = topicData.main_posts[0];