Changed code order
This commit is contained in:
parent
ef06f87ba5
commit
77817d88f6
1 changed files with 3 additions and 2 deletions
|
|
@ -41,7 +41,6 @@ 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);
|
||||
|
||||
// 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue