|
|
@ -69,13 +69,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
next();
|
|
|
|
next();
|
|
|
|
}, function() {
|
|
|
|
}, function() {
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
|
|
Feed.saveFeed('feeds/topics/' + tid + '.rss', feed, function (err) {
|
|
|
|
winston.info('[rss] Re-generated RSS Feed for tid ' + tid + '.');
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
|
|
}
|
|
|
|
winston.info('[rss] Re-generated RSS Feed for tid ' + tid + '.');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (callback) {
|
|
|
|
if (callback) {
|
|
|
|
callback();
|
|
|
|
callback();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -111,7 +113,9 @@
|
|
|
|
winston.info('[rss] Re-generated RSS Feed for cid ' + cid + '.');
|
|
|
|
winston.info('[rss] Re-generated RSS Feed for cid ' + cid + '.');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (callback) callback();
|
|
|
|
if (callback) {
|
|
|
|
|
|
|
|
callback();
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|