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

Function getLocalCardsForCollections

frontend/src/data/localDB/cards.ts:88–93  ·  view source on GitHub ↗
(
  collectionIds: string[],
)

Source from the content-addressed store, hash-verified

86}
87
88export const getLocalCardsForCollections = async (
89 collectionIds: string[],
90): Promise<LocalCard[]> => {
91 if (!collectionIds.length) return []
92 return await db.cards.where('collectionId').anyOf(collectionIds).toArray()
93}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected