Fix responsetype
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2020-09-22 19:29:44 +02:00
parent baa0166fc8
commit c893a2820b

View File

@ -58,7 +58,7 @@ export class ItemService {
getItemData(code: string,limit?:number): Observable<ArrayBuffer> { getItemData(code: string,limit?:number): Observable<ArrayBuffer> {
var params = new HttpParams(); var params = new HttpParams();
if(limit) params=params.append("limit", limit.toString()); if(limit) params=params.append("limit", limit.toString());
return this.httpClient.get<ArrayBuffer>(`${this.ApiEndpoint()}/api/v1/items/${code}/data`,{ params: params }); return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${code}/data`,{ params: params,responseType: 'arraybuffer' });
} }
getItemByCodeAndType(code: string, itemType: string): Observable<IItem> { getItemByCodeAndType(code: string, itemType: string): Observable<IItem> {