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