(db: DatabaseReference, cache: HnCache)
| 16 | cache: HnCache; |
| 17 | |
| 18 | constructor(db: DatabaseReference, cache: HnCache) { |
| 19 | this.db = db; |
| 20 | this.cache = cache; |
| 21 | } |
| 22 | |
| 23 | async fetchNewsItem(id: number): Promise<NewsItemModel | void> { |
| 24 | logger('Fetching post:', `${HN_API_URL}/item/${id}.json`); |
nothing calls this directly
no outgoing calls
no test coverage detected