(momentId, content, userId, commentId)
| 10 | } |
| 11 | |
| 12 | async reply(momentId, content, userId, commentId) { |
| 13 | const statement = `INSERT INTO comment (content, moment_id, user_id, comment_id) VALUES (?, ?, ?, ?);`; |
| 14 | const [result] = await connection.execute(statement, [content, momentId, userId, commentId]); |
| 15 | return result; |
| 16 | } |
| 17 | |
| 18 | async update(commentId, content) { |
| 19 | const statement = `UPDATE comment SET content = ? WHERE id = ?`; |
nothing calls this directly
no outgoing calls
no test coverage detected