Skip to content
This repository was archived by the owner on Sep 29, 2021. It is now read-only.

Commit 41e8a3b

Browse files
committed
rss slicing at wrong point in execution
1 parent d844dd8 commit 41e8a3b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "inbrief",
3-
"version": "2.0.0-alpha.10",
3+
"version": "2.0.0-alpha.11",
44
"author": "John Jones <johnjones4@gmail.com>",
55
"description": " InBrief is a personal briefing app and dashboard.",
66
"private": true,

src/lib/services/RSS.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class RSS extends Service {
6464
})
6565
return {
6666
'title': set.title,
67-
'items': items.map((item) => {
67+
'items': items.slice(0, this.config.max).map((item) => {
6868
return {
6969
'title': item.title,
7070
'date': item.pubDate,
@@ -88,7 +88,7 @@ class RSS extends Service {
8888
arraysOfItems.forEach((_items) => {
8989
_items.forEach((item) => items.push(item))
9090
})
91-
return items.slice(0, this.config.max)
91+
return items
9292
})
9393
}
9494

0 commit comments

Comments
 (0)