Fix #179 #180
@ -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,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user