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

Function isStreakViewCreditable

packages/shared/src/lib/streakViewQueue.ts:98–102  ·  view source on GitHub ↗
(
  at: Date,
  now: Date,
  timezone?: string,
)

Source from the content-addressed store, hash-verified

96// it arrives. Only a view from the same local day lands on the day it was
97// read, so anything older is dropped instead of sent.
98export const isStreakViewCreditable = (
99 at: Date,
100 now: Date,
101 timezone?: string,
102): boolean => isSameDayInTimezone(at, now, timezone);
103
104interface DrainStreakViewQueueProps {
105 userId: string;

Callers 2

sendQueuedViewsFunction · 0.85

Calls 1

isSameDayInTimezoneFunction · 0.90

Tested by

no test coverage detected