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

Method reply

src/service/comment.service.js:12–16  ·  view source on GitHub ↗
(momentId, content, userId, commentId)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected