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

Method constructor

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected