Changed code order

This commit is contained in:
George Mandis 2021-11-28 01:24:10 -08:00
parent ef06f87ba5
commit 77817d88f6

View file

@ -40,8 +40,7 @@ for (const [group, feeds] of Object.entries(feedList)) {
contents.feed = feed; contents.feed = feed;
contents.title = getTitle(contents); contents.title = getTitle(contents);
contents.link = getLink(contents); contents.link = getLink(contents);
contentFromAllFeeds[group].push(contents as object);
// try to normalize date attribute naming // try to normalize date attribute naming
contents?.items?.forEach((item) => { contents?.items?.forEach((item) => {
@ -50,6 +49,8 @@ for (const [group, feeds] of Object.entries(feedList)) {
item.link = getLink(item); item.link = getLink(item);
}); });
contentFromAllFeeds[group].push(contents as object);
} catch (error) { } catch (error) {
errors.push(feed); errors.push(feed);
} }