Hotfix search request
This commit is contained in:
parent
96c7a5575a
commit
c8c0b7f900
@ -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 => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user