This commit is contained in:
kevinpauer 2022-05-12 14:52:22 +02:00
parent 0d145b5883
commit 6dfb96a6db

View File

@ -102,17 +102,17 @@ export class BotService {
/** /**
* Function to delete a share * Function to delete a share
* @param {string} symbol * @param {string} isin
* @returns Observable * @returns Observable
*/ */
public deleteShare(symbol: string): Observable<any> { public deleteShare(isin: string): Observable<any> {
return this.http.delete(API_URL + 'share', { return this.http.delete(API_URL + 'share', {
headers: new HttpHeaders({ headers: new HttpHeaders({
'Content-Type': 'application/json', 'Content-Type': 'application/json',
Authorization: 'Bearer ' + this.tokenStorage.getToken(), Authorization: 'Bearer ' + this.tokenStorage.getToken(),
}), }),
body: { body: {
symbol, isin,
}, },
}); });
} }