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

Function removeStreakView

packages/shared/src/lib/streakViewQueue.ts:65–71  ·  view source on GitHub ↗
(
  view: Pick<QueuedStreakView, 'postId'>,
)

Source from the content-addressed store, hash-verified

63};
64
65export const removeStreakView = (
66 view: Pick<QueuedStreakView, 'postId'>,
67): void => {
68 writeStreakViewQueue(
69 readStreakViewQueue().filter((item) => !isSameView(item, view)),
70 );
71};
72
73// Codes that mean the API will never count this view (the post is gone, the
74// user cannot see it, or the session is not valid). Anything else, including

Callers 1

sendQueuedViewsFunction · 0.85

Calls 3

writeStreakViewQueueFunction · 0.85
readStreakViewQueueFunction · 0.85
isSameViewFunction · 0.85

Tested by

no test coverage detected