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

Method create

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

Source from the content-addressed store, hash-verified

10
11class MomentService {
12 async create(userId, content) {
13 const statement = `INSERT INTO moment (content, user_id) VALUES (?, ?);`;
14 const [result] = await connection.execute(statement, [content, userId]);
15 return result;
16 }
17
18 async getMomentById(id) {
19 const statement = `

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected