(sessionId: string)
| 139 | } |
| 140 | |
| 141 | async function getCorrectCount(sessionId: string): Promise<number> { |
| 142 | return await db.practice_cards |
| 143 | .where({ sessionId }) |
| 144 | .filter((card) => card.isCorrect === true) |
| 145 | .count() |
| 146 | } |
| 147 | |
| 148 | async function updateSessionStatsAfterPractice(sessionId: string) { |
| 149 | const session = await db.practice_sessions.get(sessionId) |
no outgoing calls
no test coverage detected