MCPcopy Create free account
hub / github.com/dailydotdev/apps / readPatchyDay

Function readPatchyDay

packages/shared/src/features/patchy/patchyDay.ts:83–84  ·  view source on GitHub ↗
(userId: string, now = new Date())

Source from the content-addressed store, hash-verified

81const storageKey = (userId: string) => `patchy_day:${userId}`;
82
83export const readPatchyDay = (userId: string, now = new Date()): PatchyDay =>
84 parsePatchyDay(storageWrapper.getItem(storageKey(userId)), now);
85
86export const recordPatchyActivity = (
87 userId: string,

Callers 2

patchyDay.spec.tsFile · 0.90
recordPatchyActivityFunction · 0.85

Calls 2

parsePatchyDayFunction · 0.85
storageKeyFunction · 0.70

Tested by

no test coverage detected