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

Function getUncompletedSession

frontend/src/data/localDB/practiceSessions.ts:20–28  ·  view source on GitHub ↗
(
  collectionId: string,
)

Source from the content-addressed store, hash-verified

18}
19
20async function getUncompletedSession(
21 collectionId: string,
22): Promise<LocalPracticeSession | undefined> {
23 return await db.practice_sessions
24 .where('collectionId')
25 .equals(collectionId)
26 .filter((session) => session.isCompleted === false || session.isCompleted === undefined)
27 .first()
28}
29
30async function deleteSessionAndPracticeCards(sessionId: string) {
31 await db.practice_cards.where('sessionId').equals(sessionId).delete()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected