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:
Nathan Barrett 2024-06-04 21:41:07 +00:00
parent 5c4d387874
commit 693b66cdfd

View file

@ -87,7 +87,7 @@ export class WeatherFeed {
try {
suggestions = await this.merino.fetch({
query: weatherQuery || "",
providers: weatherQuery ? ["accuweather_city"] : MERINO_PROVIDER,
providers: MERINO_PROVIDER,
timeoutMs: 7000,
});
} catch (error) {
@ -185,8 +185,8 @@ export class WeatherFeed {
const query = this.store.getState().Weather.locationSearchString;
let response = await this.merino.fetch({
query: query || "",
providers: ["accuweather_city"],
timeoutMs: 5000,
providers: MERINO_PROVIDER,
timeoutMs: 7000,
otherParams: {
request_type: "location",
},