(id)
| 94 | } |
| 95 | |
| 96 | async function removeItem(id) { |
| 97 | return new Promise((acc, rej) => { |
| 98 | db.run('DELETE FROM todo_items WHERE id = ?', [id], err => { |
| 99 | if (err) return rej(err); |
| 100 | acc(); |
| 101 | }); |
| 102 | }); |
| 103 | } |
| 104 | |
| 105 | module.exports = { |
| 106 | init, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…