(id)
| 116 | } |
| 117 | |
| 118 | async function removeItem(id) { |
| 119 | return new Promise((acc, rej) => { |
| 120 | pool.query('DELETE FROM todo_items WHERE id = ?', [id], err => { |
| 121 | if (err) return rej(err); |
| 122 | acc(); |
| 123 | }); |
| 124 | }); |
| 125 | } |
| 126 | |
| 127 | module.exports = { |
| 128 | init, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…