From 05705afdfebbbc99b17b9c8b5812706e4a9b31a0 Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Tue, 28 Jan 2020 09:50:33 +0100 Subject: [PATCH] AW-803 Fix casing issue. Remove unused parms. --- projects/common/src/fm/models/code.list.item.ts | 4 ++-- projects/common/src/fm/services/codelistitem.service.ts | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/projects/common/src/fm/models/code.list.item.ts b/projects/common/src/fm/models/code.list.item.ts index e09997f..7c315f5 100644 --- a/projects/common/src/fm/models/code.list.item.ts +++ b/projects/common/src/fm/models/code.list.item.ts @@ -1,5 +1,5 @@ export interface ICodeListItem { - codelist: string; + codeList: string; code: string; codeGroup?: string; unit?: string; @@ -12,7 +12,7 @@ export interface ICodeListItem { } export class CodeListItem implements ICodeListItem { - public codelist: string; + public codeList: string; public code: string; public codeGroup?: string; public unit?: string; diff --git a/projects/common/src/fm/services/codelistitem.service.ts b/projects/common/src/fm/services/codelistitem.service.ts index b4b4cd8..f47ac45 100644 --- a/projects/common/src/fm/services/codelistitem.service.ts +++ b/projects/common/src/fm/services/codelistitem.service.ts @@ -15,13 +15,11 @@ export class CodeListItemService { return this.appConfig.getConfig("apiEndPoint"); } - getCodeListItems(codelist: string[], codegroup?: string, dataFilter?: any): Observable { + getCodeListItems(codelist: string[]): Observable { var params = new HttpParams(); for (const cl of codelist) { params = params.append('cl', cl); } - if (codegroup) params = params.append("g", codegroup); - if (dataFilter) params = params.append("df", dataFilter); return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/codelistitems/`, { params: params }); } }