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