forked from mirrors/gecko-dev
Bug 1900699 - Update accuweather provider for WeatherFeed r=home-newtab-reviewers,thecount
Differential Revision: https://phabricator.services.mozilla.com/D212614
This commit is contained in:
parent
5c4d387874
commit
693b66cdfd
1 changed files with 3 additions and 3 deletions
|
|
@ -87,7 +87,7 @@ export class WeatherFeed {
|
||||||
try {
|
try {
|
||||||
suggestions = await this.merino.fetch({
|
suggestions = await this.merino.fetch({
|
||||||
query: weatherQuery || "",
|
query: weatherQuery || "",
|
||||||
providers: weatherQuery ? ["accuweather_city"] : MERINO_PROVIDER,
|
providers: MERINO_PROVIDER,
|
||||||
timeoutMs: 7000,
|
timeoutMs: 7000,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
@ -185,8 +185,8 @@ export class WeatherFeed {
|
||||||
const query = this.store.getState().Weather.locationSearchString;
|
const query = this.store.getState().Weather.locationSearchString;
|
||||||
let response = await this.merino.fetch({
|
let response = await this.merino.fetch({
|
||||||
query: query || "",
|
query: query || "",
|
||||||
providers: ["accuweather_city"],
|
providers: MERINO_PROVIDER,
|
||||||
timeoutMs: 5000,
|
timeoutMs: 7000,
|
||||||
otherParams: {
|
otherParams: {
|
||||||
request_type: "location",
|
request_type: "location",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue