(id: string)
| 75 | } |
| 76 | |
| 77 | export const deleteLocalCard = async (id: string): Promise<void> => { |
| 78 | const card = await db.cards.get(id) |
| 79 | if (!card) return |
| 80 | await db.cards.delete(id) |
| 81 | await db.collections.update(card.collectionId, { |
| 82 | updatedAt: Date.now(), |
| 83 | synced: false, |
| 84 | }) |
| 85 | await removeIncompletePracticeSessionsForCollection(card.collectionId) |
| 86 | } |
| 87 | |
| 88 | export const getLocalCardsForCollections = async ( |
| 89 | collectionIds: string[], |
nothing calls this directly
no test coverage detected