Hotfix search request

This commit is contained in:
Patrick Gebhardt 2020-06-18 17:22:38 +02:00
parent 96c7a5575a
commit c8c0b7f900

View File

@ -15,8 +15,9 @@ export class DataService {
}
public searchRegions(query: string): Promise<Result[]> {
const params = new HttpParams();
params.append('q', query);
const params = new HttpParams().set('q', query);
console.log(params);
return this.http.get<Result[]>(this.API_URL + '/search', {params}).toPromise();
// return new Promise<Result[]>(resolve => {