Add MySQL2 library as dependency for the hazard history, rewrite to use mysql for data

This commit is contained in:
mrkmntal 2026-04-17 11:44:16 -04:00
commit bbaa2cb1a4
7 changed files with 336 additions and 238 deletions

View file

@ -285,7 +285,7 @@ class Hazards extends WeatherDisplay {
id: hazard.id,
hazardType: hazard.properties?.event || 'Unknown',
severity: hazard.properties?.severity || 'Unknown',
source: hazard.properties?.senderName?.includes('NOAA') ? 'noaa' : 'derived',
source: String(hazard.id || '').startsWith('derived-') ? 'derived' : 'noaa',
}));
// Send to backend