MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / getCards

Function getCards

frontend/src/services/cards.ts:7–9  ·  view source on GitHub ↗
(collectionId: string)

Source from the content-addressed store, hash-verified

5const repo = () => getCardRepository(isGuest())
6
7export const getCards = async (collectionId: string): Promise<Card[]> => {
8 return repo().getAll(collectionId)
9}
10
11export const getCardById = async (collectionId: string, id: string): Promise<Card | null> => {
12 return repo().getById(collectionId, id)

Callers 1

CollectionComponentFunction · 0.90

Calls 2

repoFunction · 0.70
getAllMethod · 0.65

Tested by

no test coverage detected