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

Commit

Permalink
rss slicing at wrong point in execution
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjones4 committed Jan 4, 2018
1 parent d844dd8 commit 41e8a3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inbrief",
"version": "2.0.0-alpha.10",
"version": "2.0.0-alpha.11",
"author": "John Jones <[email protected]>",
"description": " InBrief is a personal briefing app and dashboard.",
"private": true,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/services/RSS.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class RSS extends Service {
})
return {
'title': set.title,
'items': items.map((item) => {
'items': items.slice(0, this.config.max).map((item) => {
return {
'title': item.title,
'date': item.pubDate,
Expand All @@ -88,7 +88,7 @@ class RSS extends Service {
arraysOfItems.forEach((_items) => {
_items.forEach((item) => items.push(item))
})
return items.slice(0, this.config.max)
return items
})
}

Expand Down

0 comments on commit 41e8a3b

Please sign in to comment.