Fix share delete bug

This commit is contained in:
kevinpauer 2022-04-12 10:33:45 +02:00
parent b929968be8
commit ac4c59bbf8

View File

@ -95,17 +95,17 @@ export class BotService {
} }
/** /**
* @param {string} share * @param {string} symbol
* @returns Observable * @returns Observable
*/ */
public deleteShare(share: string): Observable<any> { public deleteShare(symbol: 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: {
share, symbol,
}, },
}); });
} }