(commentId, content)
| 16 | } |
| 17 | |
| 18 | async update(commentId, content) { |
| 19 | const statement = `UPDATE comment SET content = ? WHERE id = ?`; |
| 20 | const [result] = await connection.execute(statement, [content, commentId]); |
| 21 | return result; |
| 22 | } |
| 23 | |
| 24 | async remove(commentId) { |
| 25 | const statement = `DELETE FROM comment WHERE id = ?`; |
nothing calls this directly
no outgoing calls
no test coverage detected