Another attempt to fix parameter
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
b8a4b3541d
commit
58c200aca0
@ -57,10 +57,8 @@ 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) {
|
if(limit) params.append("limit", limit.toString());
|
||||||
params.append("limit", limit.toFixed(0));
|
return this.httpClient.get<ArrayBuffer>(`${this.ApiEndpoint()}/api/v1/items/${code}/data`,{ params: params });
|
||||||
}
|
|
||||||
return this.httpClient.get<ArrayBuffer>(`${this.ApiEndpoint()}/api/v1/items/${code}/data/`,{ params: params });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getItemByCodeAndType(code: string, itemType: string): Observable<IItem> {
|
getItemByCodeAndType(code: string, itemType: string): Observable<IItem> {
|
||||||
|
Loading…
Reference in New Issue
Block a user