()
| 162 | } |
| 163 | |
| 164 | async deleteList() { |
| 165 | // Delete all items in this list, then the list itself (atomically) |
| 166 | await db.transaction('rw', db.todoItems, db.todoLists, async () => { |
| 167 | await db.todoItems.where({ todoListId: this.todoListId() }).delete(); |
| 168 | await db.todoLists.delete(this.todoListId()); |
| 169 | }); |
| 170 | } |
| 171 | } |
nothing calls this directly
no test coverage detected