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

Method update

src/controller/comment.controller.js:19–24  ·  view source on GitHub ↗
(ctx, next)

Source from the content-addressed store, hash-verified

17 }
18
19 async update(ctx, next) {
20 const { commentId } = ctx.params;
21 const { content } = ctx.request.body;
22 const result = await service.update(commentId, content);
23 ctx.body = result;
24 }
25
26 async remove(ctx, next) {
27 const { commentId } = ctx.params;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected