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 { 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",
}, },