Adopt StorageScope.Application (#153297)

Adopt `StorageScope.Application` (#152679)
This commit is contained in:
Alexandru Dima 2022-06-27 14:18:28 +02:00 committed by GitHub
parent 691bcec4a5
commit 1df4b3ceb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ class IntegrityStorage {
}
private _read(): IStorageData | null {
const jsonValue = this.storageService.get(IntegrityStorage.KEY, StorageScope.PROFILE);
const jsonValue = this.storageService.get(IntegrityStorage.KEY, StorageScope.APPLICATION);
if (!jsonValue) {
return null;
}
@ -50,7 +50,7 @@ class IntegrityStorage {
set(data: IStorageData | null): void {
this.value = data;
this.storageService.store(IntegrityStorage.KEY, JSON.stringify(this.value), StorageScope.PROFILE, StorageTarget.MACHINE);
this.storageService.store(IntegrityStorage.KEY, JSON.stringify(this.value), StorageScope.APPLICATION, StorageTarget.MACHINE);
}
}