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