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

Method update

src/service/moment.service.js:65–69  ·  view source on GitHub ↗
(content, momentId)

Source from the content-addressed store, hash-verified

63 }
64
65 async update(content, momentId) {
66 const statement = `UPDATE moment SET content = ? WHERE id = ?;`;
67 const [result] = await connection.execute(statement, [content, momentId]);
68 return result;
69 }
70
71 async remove(momentId) {
72 const statement = `DELETE FROM moment WHERE id = ?`;

Callers 1

md5passwordFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected