diff options
author | Ittay Stern <ittay.stern@att.com> | 2020-01-09 13:53:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-01-09 13:53:34 +0000 |
commit | 2d701e93373c70e33c2f797d7b2c177cfe96bc2e (patch) | |
tree | 6e8d92931eb5edab44f28ba5daa305b8886b9a62 /vid-webpack-master/src/app/shared/services | |
parent | 2e0d6b1a8fe5fdeef16c90e438c9df425f40b855 (diff) | |
parent | 4ef3ee778fc944cdfe28146d4eed360ce096e5ee (diff) |
Merge "Upgrade to Angular 8"
Diffstat (limited to 'vid-webpack-master/src/app/shared/services')
-rwxr-xr-x[-rw-r--r--] | vid-webpack-master/src/app/shared/services/aaiService/aai.epics.ts | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/vid-webpack-master/src/app/shared/services/aaiService/aai.epics.ts b/vid-webpack-master/src/app/shared/services/aaiService/aai.epics.ts index a850d55da..3a05157ae 100644..100755 --- a/vid-webpack-master/src/app/shared/services/aaiService/aai.epics.ts +++ b/vid-webpack-master/src/app/shared/services/aaiService/aai.epics.ts @@ -22,7 +22,6 @@ import { updateProductFamilies, updateUserId } from "../../storeUtil/utils/general/general.actions"; import {createServiceInstance} from "../../storeUtil/utils/service/service.actions"; -import {delay, mapTo} from "rxjs/operators"; const notFetchedAlready = (state: AppState): boolean => state.service.productFamilies !== null; @@ -30,7 +29,6 @@ const notFetchedAlready = (state: AppState): boolean => state.service.productFam export class AAIEpics { constructor(private aaiService: AaiService) { } - public createEpic() { return combineEpics( this.loadProductFamiliesEpic @@ -49,7 +47,11 @@ export class AAIEpics { private loadProductFamiliesEpic = (action$, store) => action$ .ofType(LOAD_PRODUCT_FAMILIES) - .switchMap(() => this.aaiService.getProductFamilies().map(data => updateProductFamilies(data))); + .switchMap(() => + this.aaiService.getProductFamilies() + .map(data => + updateProductFamilies(data) + )); private loadCategoryParameters = (action$, store) => action$ .ofType(LOAD_CATEGORY_PARAMETERS) @@ -64,7 +66,9 @@ export class AAIEpics { private loadServiceAccordingToUuid = (action$, store) => action$ .ofType(LOAD_SERVICE_MDOEL_BY_UUID) .switchMap((action) => this.aaiService.getServiceModelById(action.modelId) - .map(data => createServiceInstance(action.uuid, data))); + .map(data => + createServiceInstance(action.uuid, data)) + ); private loadUserId = (action$, store) => action$ .ofType(LOAD_USER_ID) |