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

Method addLabel

src/service/moment.service.js:83–87  ·  view source on GitHub ↗
(momentId, labelId)

Source from the content-addressed store, hash-verified

81 }
82
83 async addLabel(momentId, labelId) {
84 const statement = `INSERT INTO moment_label (moment_id, label_id) VALUES (?, ?);`;
85 const [result] = await connection.execute(statement, [momentId, labelId]);
86 return result;
87 }
88}
89
90module.exports = new MomentService();

Callers 1

addLabelsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected