MCPcopy Create free account
hub / github.com/clintonwoo/hackernews-react-graphql / constructor

Method constructor

server/database/database.ts:18–21  ·  view source on GitHub ↗
(db: DatabaseReference, cache: HnCache)

Source from the content-addressed store, hash-verified

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`);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected