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

Method changeLocalCacheStoreMethod

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

Source from the content-addressed store, hash-verified

89
90 // must be public
91 public changeLocalCacheStoreMethod(data) {
92 if (data.discussionName) {
93 this.discussionName = data.discussionName;
94 }
95
96 if (data.discussionMemberIds) {
97 this.discussionMemberIds.replace(data.discussionMemberIds || []);
98 }
99
100 if (data.lastUpdatedAt) {
101 this.lastUpdatedAt = new Date(data.lastUpdatedAt);
102 }
103 }
104
105 public getHighlightedDiscussionNameStoreMethod(query: string) {
106 const regEx = getRegEx(query);

Calls

no outgoing calls

Tested by

no test coverage detected