From b095f7fcceeed12e7a3d3f6d460d990885d8ccec Mon Sep 17 00:00:00 2001 From: addison Date: Thu, 11 Nov 2021 11:56:33 -0500 Subject: [PATCH] [review] Rename stateService.purge to stateService.clean --- common/src/abstractions/state.service.ts | 2 +- common/src/services/state.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/abstractions/state.service.ts b/common/src/abstractions/state.service.ts index ec63f140..3cbdd594 100644 --- a/common/src/abstractions/state.service.ts +++ b/common/src/abstractions/state.service.ts @@ -29,7 +29,7 @@ export abstract class StateService { addAccount: (account: Account) => Promise; setActiveUser: (userId: string) => Promise; - purge: (options?: StorageOptions) => Promise; + clean: (options?: StorageOptions) => Promise; getAccessToken: (options?: StorageOptions) => Promise; setAccessToken: (value: string, options?: StorageOptions) => Promise; diff --git a/common/src/services/state.service.ts b/common/src/services/state.service.ts index 73ccce55..aabbdab1 100644 --- a/common/src/services/state.service.ts +++ b/common/src/services/state.service.ts @@ -76,7 +76,7 @@ export class StateService implements StateServiceAbstraction { await this.pushAccounts(); } - async purge(options?: StorageOptions): Promise { + async clean(options?: StorageOptions): Promise { await this.secureStorageService.remove(options?.userId ?? this.state.activeUserId); await this.storageService.remove(options?.userId ?? this.state.activeUserId); delete this.state.accounts[options?.userId ?? this.state.activeUserId];