Skip to content

Commit

Permalink
Get commentsID
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico B committed Aug 12, 2017
1 parent aff838a commit a4538d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data/sources/hacker-news.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class HackerNews extends API {
link: url || `https://news.ycombinator.com/item?=${id}`,
publishedAt: new Date(time * 1000),
type: this.type,
commentsID: id,
}
));
}
Expand All @@ -29,7 +30,7 @@ class HackerNews extends API {

getItem(id) {
return this.fetch(`/item/${id}.json`)
.catch(err => { throw err });;
.catch(err => { throw err });
}

get listing() {
Expand Down

0 comments on commit a4538d4

Please sign in to comment.