diff options
author | 2018-08-12 12:39:50 +0300 | |
---|---|---|
committer | 2018-08-12 11:46:25 +0000 | |
commit | ee5e392c78f44defdf2d17ce658c96d9981d5de2 (patch) | |
tree | d8c5be3950259eabdcc7637a96f455d0dbab962f /catalog-ui/src/app/ng2/services/workflow.service.ts | |
parent | 05c29ff57350959826f93516f95ed7fe9b98180e (diff) |
Enhance operations to associate workflows
reading workflows and workflow versions from response "items" instead of "results"
Change-Id: Iaf4a5538a0950dc95c54668307d5f3397a8b0f73
Issue-ID: SDC-1535
Signed-off-by: avigaffa <avi.gaffa@amdocs.com>
Diffstat (limited to 'catalog-ui/src/app/ng2/services/workflow.service.ts')
-rw-r--r-- | catalog-ui/src/app/ng2/services/workflow.service.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/catalog-ui/src/app/ng2/services/workflow.service.ts b/catalog-ui/src/app/ng2/services/workflow.service.ts index 7e596e1eda..b880955d27 100644 --- a/catalog-ui/src/app/ng2/services/workflow.service.ts +++ b/catalog-ui/src/app/ng2/services/workflow.service.ts @@ -20,14 +20,14 @@ export class WorkflowServiceNg2 { public getWorkflows(filterCertified: boolean = true): Observable<any> { return this.http.get(this.baseUrl + '/workflows' + (filterCertified ? '?versionState=' + this.VERSION_STATE_CERTIFIED : '')) .map((res:Response) => { - return res.json().results; + return res.json().items; }); } public getWorkflowVersions(workflowId: string, filterCertified: boolean = true): Observable<any> { return this.http.get(this.baseUrl + '/workflows/' + workflowId + '/versions' + (filterCertified ? '?state=' + this.VERSION_STATE_CERTIFIED : '')) .map((res:Response) => { - return res.json().results; + return res.json().items; }); } |