feat: add default hazard votes
This commit is contained in:
@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user