aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/services
diff options
context:
space:
mode:
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.ts12
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)