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

Function getLocalCardById

frontend/src/data/localDB/cards.ts:53–57  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

51}
52
53export const getLocalCardById = async (id: string): Promise<LocalCard> => {
54 const card = await db.cards.get(id)
55 if (!card) throw new Error('Card not found')
56 return card
57}
58
59export const updateLocalCard = async (
60 id: string,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected