AW-803 Fix casing issue. Remove unused parms.
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good

This commit is contained in:
Peter Bastiani 2020-01-28 09:50:33 +01:00
parent 0ba553cc40
commit 05705afdfe
2 changed files with 3 additions and 5 deletions

View File

@ -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;

View File

@ -15,13 +15,11 @@ export class CodeListItemService {
return this.appConfig.getConfig("apiEndPoint");
}
getCodeListItems(codelist: string[], codegroup?: string, dataFilter?: any): Observable<ICodeListItem[]> {
getCodeListItems(codelist: string[]): Observable<ICodeListItem[]> {
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<ICodeListItem[]>(`${this.ApiEndpoint()}/api/v1/codelistitems/`, { params: params });
}
}