From 1a2c58d8c4cee5f7f17f760203cd92a381be8c3f Mon Sep 17 00:00:00 2001 From: Luka van der Plas Date: Thu, 2 Nov 2023 13:31:10 +0100 Subject: [PATCH] remove saveQuery functions --- frontend/src/app/services/api.service.ts | 5 ----- frontend/src/app/services/query.service.ts | 5 ----- 2 files changed, 10 deletions(-) diff --git a/frontend/src/app/services/api.service.ts b/frontend/src/app/services/api.service.ts index 47ced1eb4..08189aed5 100644 --- a/frontend/src/app/services/api.service.ts +++ b/frontend/src/app/services/api.service.ts @@ -58,11 +58,6 @@ export class ApiService { return this.http.post('/api/search_history/delete_all/', {}); } - // General / misc - public saveQuery(options: QueryDb) { - return this.http.post('/api/search_history/', options).toPromise(); - } - public searchHistory() { return this.http.get('/api/search_history/').toPromise(); } diff --git a/frontend/src/app/services/query.service.ts b/frontend/src/app/services/query.service.ts index b1cc941e6..624e53236 100644 --- a/frontend/src/app/services/query.service.ts +++ b/frontend/src/app/services/query.service.ts @@ -8,11 +8,6 @@ export class QueryService { constructor(private apiRetryService: ApiRetryService) { } - save(query: QueryDb): Promise { - return this.apiRetryService.requireLogin(api => api.saveQuery(query)); - } - - /** * Retrieve saved queries */