async withProfileScopedStorageService<T>(profile: IUserDataProfile, fn: (storageService: IStorageService) => Promise<T>): Promise<T> {
return fn(this.storageService);
}
let storageService = this.storageServicesMap?.get(profile.id);
userDataProfileStorageService.ts
if (!storageService) {
storageService = new StorageService(this.createStorageDatabase(profile));
this.storageServicesMap?.set(profile.id, storageService);