MCPcopy
hub / github.com/MALSync/MALSync / emitUpdate

Function emitUpdate

src/_provider/singleAbstract.ts:438–452  ·  view source on GitHub ↗
(action: 'update' | 'state' = 'update')

Source from the content-addressed store, hash-verified

436 }
437
438 public emitUpdate(action: 'update' | 'state' = 'update') {
439 globalEmit(`${action}.${this.getCacheKey()}`, {
440 id: this.getPageId(),
441 type: this.getType(),
442 cacheKey: this.getCacheKey(),
443 state: this.getStateEl(),
444 meta: {
445 title: this.getTitle(),
446 image: this.getImage(),
447 malId: this.getMalId(),
448 totalEp: this.getTotalEpisodes(),
449 url: this.getUrl(),
450 },
451 });
452 }
453
454 abstract _delete(): Promise<void>;
455

Callers

nothing calls this directly

Calls 6

globalEmitFunction · 0.90
getCacheKeyMethod · 0.45
getPageIdMethod · 0.45
getTitleMethod · 0.45
getImageMethod · 0.45
getUrlMethod · 0.45

Tested by

no test coverage detected