From 14744a854fc80908c9368be8078ee3b5f186a8f5 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 30 Dec 2013 12:39:13 -0500 Subject: [PATCH] fixes #703 - topic feeds were not saving (who knows for how long!) --- src/feed.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/feed.js b/src/feed.js index 57818a6cca..7f07737e03 100644 --- a/src/feed.js +++ b/src/feed.js @@ -69,13 +69,15 @@ next(); }, function() { - if (process.env.NODE_ENV === 'development') { - winston.info('[rss] Re-generated RSS Feed for tid ' + tid + '.'); - } + Feed.saveFeed('feeds/topics/' + tid + '.rss', feed, function (err) { + if (process.env.NODE_ENV === 'development') { + winston.info('[rss] Re-generated RSS Feed for tid ' + tid + '.'); + } - if (callback) { - callback(); - } + if (callback) { + callback(); + } + }); }); }); @@ -111,7 +113,9 @@ winston.info('[rss] Re-generated RSS Feed for cid ' + cid + '.'); } - if (callback) callback(); + if (callback) { + callback(); + } }); }); });