Browse Source

[bug] Store last sync in memory (#1471)

v2.26.1
Addison Beck 4 years ago committed by addison
parent
commit
aa42890fdf
  1. 10
      src/services/state.service.ts

10
src/services/state.service.ts

@ -92,4 +92,14 @@ export class StateService
options = this.reconcileOptions(options, this.defaultInMemoryOptions); options = this.reconcileOptions(options, this.defaultInMemoryOptions);
return await super.setEncryptedSends(value, options); return await super.setEncryptedSends(value, options);
} }
override async getLastSync(options?: StorageOptions): Promise<string> {
options = this.reconcileOptions(options, this.defaultInMemoryOptions);
return await super.getLastSync(options);
}
override async setLastSync(value: string, options?: StorageOptions): Promise<void> {
options = this.reconcileOptions(options, this.defaultInMemoryOptions);
return await super.setLastSync(value, options);
}
} }

Loading…
Cancel
Save