Fixed the bug where you could not delete music requests

pull/3856/head
Jamie Rees 4 years ago
parent b9be1eaaab
commit 9438bbf81d

@ -189,8 +189,8 @@ export class RequestService extends ServiceHelpers {
return this.http.get<IAlbumRequest[]>(`${this.url}music/search/${search}`, {headers: this.headers});
}
public removeAlbumRequest(request: IAlbumRequest): any {
return this.http.delete(`${this.url}music/${request.id}`, {headers: this.headers});
public removeAlbumRequest(request: number): any {
return this.http.delete(`${this.url}music/${request}`, {headers: this.headers});
}
}

Loading…
Cancel
Save