MCPcopy Create free account
hub / github.com/async-labs/async / addCommentToLocalCacheStoreMethod

Method addCommentToLocalCacheStoreMethod

app/lib/store/Discussion.ts:229–235  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

227 }
228
229 public addCommentToLocalCacheStoreMethod(data) {
230 const commentObj = new Comment({ discussion: this, store: this.store, ...data });
231
232 this.comments.push(commentObj);
233
234 return commentObj;
235 }
236
237 public editCommentFromLocalCacheStoreMethod(data) {
238 const comment = this.comments.find((c) => c.commentId === data._id);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected