From 8f5544ab2414f2fdeaed4b987699d43ae6cc9fe3 Mon Sep 17 00:00:00 2001 From: chrisvpeters Date: Tue, 19 Nov 2024 15:53:04 +1100 Subject: [PATCH] AUS-4265 - fix DELETE api call for bookmarks --- src/app/services/api/auscope-api.service.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/services/api/auscope-api.service.ts b/src/app/services/api/auscope-api.service.ts index 9c93cebb..337b18d6 100644 --- a/src/app/services/api/auscope-api.service.ts +++ b/src/app/services/api/auscope-api.service.ts @@ -17,7 +17,6 @@ interface ApiResponse { function apiData(response: ApiResponse): Observable { // Convert a VGL error into an Observable error if (!response.success) { - console.log('API response error: ' + JSON.stringify(response)); return throwError(response.msg); } @@ -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