fix: correct coordinate property access in POST /api/wea
Deploy Bürgerwind / deploy (push) Successful in 16s
Details
Deploy Bürgerwind / deploy (push) Successful in 16s
Details
This commit is contained in:
parent
1c6d27361f
commit
6787290554
|
|
@ -67,7 +67,7 @@ app.post('/api/wea', async (req, res) => {
|
||||||
`INSERT INTO ${schema}.wea_standorte
|
`INSERT INTO ${schema}.wea_standorte
|
||||||
(projekt_id, wea_nummer, anlagentyp, nabenhoehe, rotordurchmesser, geom)
|
(projekt_id, wea_nummer, anlagentyp, nabenhoehe, rotordurchmesser, geom)
|
||||||
VALUES ($1, $2, $3, $4, $5, ST_Transform(ST_SetSRID(ST_MakePoint($6, $7), 4326), 25832))`,
|
VALUES ($1, $2, $3, $4, $5, ST_Transform(ST_SetSRID(ST_MakePoint($6, $7), 4326), 25832))`,
|
||||||
[targetProject, t.nr, t.type, t.hh, t.rd, t.lng, t.lat]
|
[targetProject, t.nr, t.type, t.hh, t.rd, t.latlng.lng, t.latlng.lat]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue