diff --git a/pages/api/updatePoi.js b/pages/api/updatePoi.js index c6b12c3a0..7e5ba9596 100644 --- a/pages/api/updatePoi.js +++ b/pages/api/updatePoi.js @@ -32,10 +32,10 @@ export default function handler(req, res) { } const query = - "UPDATE talas_v5.poi SET description = ?, idPoiTyp = ?, idLD WHERE idPoi = ?"; + "UPDATE talas_v5.poi SET description = ?, idPoiTyp = ?, idLD = ? WHERE idPoi = ?"; connection.query( query, - [description, idPoiTyp, idPoi, idLD], + [description, idPoiTyp, idLD, idPoi], (error, results) => { if (error) { console.error("Fehler beim Aktualisieren des POI:", error);