From bc77a1891ce784c4e63d95fb8232f70a7cb1c1c6 Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Fri, 23 May 2025 15:43:58 -0500 Subject: [PATCH] remove limit for alert endpoint due to recent api change --- server/scripts/modules/hazards.mjs | 1 - 1 file changed, 1 deletion(-) diff --git a/server/scripts/modules/hazards.mjs b/server/scripts/modules/hazards.mjs index b94c661..8efd8f7 100644 --- a/server/scripts/modules/hazards.mjs +++ b/server/scripts/modules/hazards.mjs @@ -39,7 +39,6 @@ class Hazards extends WeatherDisplay { // get the forecast const url = new URL('https://api.weather.gov/alerts/active'); url.searchParams.append('point', `${this.weatherParameters.latitude},${this.weatherParameters.longitude}`); - url.searchParams.append('limit', 5); const alerts = await json(url, { retryCount: 3, stillWaiting: () => this.stillWaiting() }); const unsortedAlerts = alerts.features ?? []; const hasImmediate = unsortedAlerts.reduce((acc, hazard) => acc || hazard.properties.urgency === 'Immediate', false);