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; }'.
FarmMaps.Develop/FarmMapsLib/develop This commit looks good Details

pull/1/head
Peter Bastiani 2020-01-30 14:13:59 +01:00
parent e41b94bb77
commit e53378a76b
1 changed files with 2 additions and 2 deletions

View File

@ -110,8 +110,8 @@ export class ItemService {
return this.httpClient.put<IItem>(`${this.ApiEndpoint()}/api/v1/items/${item.code}`,item);
}
deleteItem(itemCode: string): Observable<any> {
return this.httpClient.delete<any>(`${this.ApiEndpoint()}/api/v1/items`, itemCode);
deleteItem(code: string): Observable<any> {
return this.httpClient.delete<any>(`${this.ApiEndpoint()}/api/v1/items/${code}`);
}
deleteItems(itemCodes:string[]): Observable<any> {