MCPcopy Create free account
hub / github.com/coderwhy/coderhub / update

Method update

src/service/comment.service.js:18–22  ·  view source on GitHub ↗
(commentId, content)

Source from the content-addressed store, hash-verified

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 = ?`;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected