adjusting check for null feed

This commit is contained in:
John Facey
2022-06-26 18:33:46 -05:00
parent 893916d3cd
commit f169fda24d

View File

@@ -123,7 +123,7 @@ exports.loadFeeds = function () {
linkFlayerCats = [];
base(userTable)
.select().firstPage(function(err, records) {
.select().firstPage(function (err, records) {
try {
records.forEach(function (record) {
console.log('Retrieved title: ', record.get('title'));
@@ -174,7 +174,8 @@ exports.loadFeeds = function () {
console.log(err + " " + feedBlock.link);
//return;
}
if (feed.items !== null) {
if (feed !== null) {
feed.items.forEach(item => {
var foundFeed = false;
linkFlayerMap.forEach(linkFlay => {
@@ -322,7 +323,7 @@ exports.getSources = function () {
*/
exports.getQuotes = async function (quote_url) {
var data = [];
var data = [];
await axios.get(quote_url)
.then(response => {
console.log(response.data[0].q);