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

Function getLocalCollectionById

frontend/src/data/localDB/collections.ts:24–28  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

22}
23
24export const getLocalCollectionById = async (id: string): Promise<LocalCollection> => {
25 const collection = await db.collections.get(id)
26 if (!collection) throw new Error('Collection not found')
27 return collection
28}
29
30export const updateLocalCollection = async (
31 id: string,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected