changed mongo sets to store just strings, fixes worlds problems

This commit is contained in:
Baris Soner Usakli
2013-12-04 23:51:57 -05:00
parent c698af17ae
commit 567997ef3c
2 changed files with 8 additions and 3 deletions

View File

@@ -30,7 +30,12 @@
Feed.updateTopic = function (tid, callback) {
topics.getTopicWithPosts(tid, 0, 0, -1, function (err, topicData) {
if (err) {
return callback(new Error('topic-invalid'));
if(callback) {
return callback(new Error('topic-invalid'));
} else {
winston.error(err.message);
return;
}
}
var feed = new rss({