()
| 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 |
nothing calls this directly
no test coverage detected