diff --git a/common/src/services/stateMigration.service.ts b/common/src/services/stateMigration.service.ts index 511c8dc4776..ab19af05c02 100644 --- a/common/src/services/stateMigration.service.ts +++ b/common/src/services/stateMigration.service.ts @@ -409,26 +409,26 @@ export class StateMigrationService { } } - private get options(): StorageOptions { + protected get options(): StorageOptions { return { htmlStorageLocation: HtmlStorageLocation.Local }; } - private get(key: string): Promise { + protected get(key: string): Promise { return this.storageService.get(key, this.options); } - private set(key: string, value: any): Promise { + protected set(key: string, value: any): Promise { if (value == null) { return this.storageService.remove(key, this.options); } return this.storageService.save(key, value, this.options); } - private async getGlobals(): Promise { + protected async getGlobals(): Promise { return await this.get(keys.global); } - private async getCurrentStateVersion(): Promise { + protected async getCurrentStateVersion(): Promise { return (await this.getGlobals())?.stateVersion; } }