Skip to content

Commit

Permalink
AUS-4265 - fix DELETE api call for bookmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvpeters committed Nov 19, 2024
1 parent fd4b407 commit 8f5544a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/app/services/api/auscope-api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ interface ApiResponse<T> {
function apiData<T>(response: ApiResponse<T>): Observable<T> {
// Convert a VGL error into an Observable error
if (!response.success) {
console.log('API response error: ' + JSON.stringify(response));
return throwError(response.msg);
}

Expand Down Expand Up @@ -113,10 +112,7 @@ export class AuscopeApiService {

// Remove bookmark information from database
public removeBookmark(bookmarkId: number) {
const params = {
id: bookmarkId.toString()
}
return this.apiDelete('bookmarks', params);
return this.apiDelete('bookmarks/'+bookmarkId.toString());
}

// Get list of bookmarks for a user
Expand Down

0 comments on commit 8f5544a

Please sign in to comment.