MCPcopy Index your code
hub / github.com/MALSync/MALSync / update

Function update

src/_provider/singleAbstract.ts:396–414  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

394 abstract _update(): Promise<void>;
395
396 public update(): Promise<void> {
397 this.logger.log('[SINGLE]', 'Update info', this.ids);
398 this.lastError = null;
399 return this._update()
400 .catch(e => {
401 this.lastError = e;
402 throw e;
403 })
404 .then(() => {
405 this.persistenceState = this.getStateEl();
406
407 return utils.getEntrySettings(this.type, this.getCacheKey(), this._getTags());
408 })
409 .then(options => {
410 this.options = options;
411 this.registerEvent();
412 this.emitUpdate('state');
413 });
414 }
415
416 abstract _sync(): Promise<void>;
417

Callers

nothing calls this directly

Calls 3

_updateMethod · 0.45
getCacheKeyMethod · 0.45
_getTagsMethod · 0.45

Tested by

no test coverage detected