From e53378a76b0add47e2cf6fd9697e0bdd3884a6a3 Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Thu, 30 Jan 2020 14:13:59 +0100 Subject: [PATCH] AW-803 Fixed -> ERROR: projects/common/src/fm/services/item.service.ts(114,78): error TS2559: Type 'string' has no properties in common with type '{ headers?: HttpHeaders | { [header: string]: string | string[]; }; observe?: "body"; params?: HttpParams | { [param: string]: string | string[]; }; reportProgress?: boolean; responseType?: "json"; withCredentials?: boolean; }'. --- projects/common/src/fm/services/item.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/common/src/fm/services/item.service.ts b/projects/common/src/fm/services/item.service.ts index c75c581..36ccefb 100644 --- a/projects/common/src/fm/services/item.service.ts +++ b/projects/common/src/fm/services/item.service.ts @@ -110,8 +110,8 @@ export class ItemService { return this.httpClient.put(`${this.ApiEndpoint()}/api/v1/items/${item.code}`,item); } - deleteItem(itemCode: string): Observable { - return this.httpClient.delete(`${this.ApiEndpoint()}/api/v1/items`, itemCode); + deleteItem(code: string): Observable { + return this.httpClient.delete(`${this.ApiEndpoint()}/api/v1/items/${code}`); } deleteItems(itemCodes:string[]): Observable {