remove async from Feed.updateTopic

v1.18.x
Baris Soner Usakli 12 years ago
parent 527e6e63cc
commit 0a4ac1a346

@ -29,15 +29,8 @@
Feed.updateTopic = function(tid, cid) { Feed.updateTopic = function(tid, cid) {
var cache_time_in_seconds = 60; var cache_time_in_seconds = 60;
function getTopicData(next) { topics.getTopicById(tid, 0, function(topicData) {
topics.getTopicById(tid, 0, function(topicData) { var location = '/topic/' + topicData.slug,
next(null, topicData);
});
}
async.parallel([getTopicData], function(err, results) {
var topicData = results[0],
location = '/topic/' + topicData.slug,
xml_url = '/topic/' + tid + '.rss'; xml_url = '/topic/' + tid + '.rss';
var post = topicData.main_posts[0]; var post = topicData.main_posts[0];

Loading…
Cancel
Save