From 1995ccaff0c5e7c226e05a3bafb5d6f4b203a49a Mon Sep 17 00:00:00 2001 From: Johannes Baumeister Date: Tue, 28 Apr 2026 13:12:05 +0200 Subject: [PATCH] fix: use correct column names (anlagentyp) in database insert --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 939d0ff..f0cd1d0 100644 --- a/server.js +++ b/server.js @@ -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] );