From 678729055406cfa0a3f6660394f3680c19c52c3c Mon Sep 17 00:00:00 2001 From: Johannes Baumeister Date: Tue, 28 Apr 2026 13:15:36 +0200 Subject: [PATCH] fix: correct coordinate property access in POST /api/wea --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 806d600..0713a75 100644 --- a/server.js +++ b/server.js @@ -67,7 +67,7 @@ app.post('/api/wea', async (req, res) => { `INSERT INTO ${schema}.wea_standorte (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] + [targetProject, t.nr, t.type, t.hh, t.rd, t.latlng.lng, t.latlng.lat] ); } }