Skip to content

Commit

Permalink
remove saveQuery functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukavdplas committed Nov 2, 2023
1 parent 08d6750 commit 1a2c58d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions frontend/src/app/services/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<QueryDb[]>('/api/search_history/').toPromise();
}
Expand Down
5 changes: 0 additions & 5 deletions frontend/src/app/services/query.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ export class QueryService {

constructor(private apiRetryService: ApiRetryService) { }

save(query: QueryDb): Promise<any> {
return this.apiRetryService.requireLogin(api => api.saveQuery(query));
}


/**
* Retrieve saved queries
*/
Expand Down

0 comments on commit 1a2c58d

Please sign in to comment.