Fix responsetype
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
parent
baa0166fc8
commit
c893a2820b
@ -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> {
|
||||||
|
Loading…
Reference in New Issue
Block a user