feat: add default hazard votes
Some checks failed
TrafficCue Server CI / check (push) Failing after 24s
TrafficCue Server CD / build (push) Successful in 1m24s

This commit is contained in:
2025-09-18 12:37:11 +02:00
parent 4fa96da842
commit 03c2e8995b

View File

@ -240,6 +240,7 @@ if (process.env.HAZARDS_ENABLED) {
hazard.latitude = nlat; hazard.latitude = nlat;
hazard.longitude = nlon; hazard.longitude = nlon;
hazard.type = type; hazard.type = type;
hazard.votes = 1;
hazard.user = user; hazard.user = user;
await hazard.save(); await hazard.save();