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

Function getLocalCollections

frontend/src/data/localDB/collections.ts:20–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20export const getLocalCollections = async (): Promise<LocalCollection[]> => {
21 return await db.collections.orderBy('updatedAt').reverse().toArray()
22}
23
24export const getLocalCollectionById = async (id: string): Promise<LocalCollection> => {
25 const collection = await db.collections.get(id)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected