Add MySQL2 library as dependency for the hazard history, rewrite to use mysql for data
This commit is contained in:
parent
5998d2583a
commit
bbaa2cb1a4
7 changed files with 336 additions and 238 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue