diff --git a/projects/common/src/fm/services/item.service.ts b/projects/common/src/fm/services/item.service.ts index 0abe934..052d2a2 100644 --- a/projects/common/src/fm/services/item.service.ts +++ b/projects/common/src/fm/services/item.service.ts @@ -57,10 +57,8 @@ export class ItemService { getItemData(code: string,limit?:number): Observable { var params = new HttpParams(); - if(limit) { - params.append("limit", limit.toFixed(0)); - } - return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${code}/data/`,{ params: params }); + if(limit) params.append("limit", limit.toString()); + return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${code}/data`,{ params: params }); } getItemByCodeAndType(code: string, itemType: string): Observable {