From aa42890fdfbfe603efd6d410d2cbd109f2033db9 Mon Sep 17 00:00:00 2001 From: Addison Beck Date: Fri, 11 Feb 2022 03:39:48 -0500 Subject: [PATCH] [bug] Store last sync in memory (#1471) --- src/services/state.service.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/services/state.service.ts b/src/services/state.service.ts index 1f41b4d3e4e..0837b4a27f8 100644 --- a/src/services/state.service.ts +++ b/src/services/state.service.ts @@ -92,4 +92,14 @@ export class StateService options = this.reconcileOptions(options, this.defaultInMemoryOptions); return await super.setEncryptedSends(value, options); } + + override async getLastSync(options?: StorageOptions): Promise { + options = this.reconcileOptions(options, this.defaultInMemoryOptions); + return await super.getLastSync(options); + } + + override async setLastSync(value: string, options?: StorageOptions): Promise { + options = this.reconcileOptions(options, this.defaultInMemoryOptions); + return await super.setLastSync(value, options); + } }