fix: use correct column names (anlagentyp) in database insert
Deploy Bürgerwind / deploy (push) Has been cancelled Details

This commit is contained in:
Johannes Baumeister 2026-04-28 13:12:05 +02:00
parent 65fdbbc9f6
commit 1995ccaff0
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ app.post('/api/wea', async (req, res) => {
for (const t of turbines) {
await client.query(
`INSERT INTO ${schema}.wea_standorte
(projekt_id, wea_nummer, typ, 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))`,
[targetProject, t.nr, t.type, t.hh, t.rd, t.lng, t.lat]
);