diff --git a/dbHandler.js b/dbHandler.js index 414f85a..f2f9ffd 100644 --- a/dbHandler.js +++ b/dbHandler.js @@ -15,7 +15,7 @@ function addMarker(marker) { const datePart = date.slice(0, 10); // '2024-09-06' const timePart = date.slice(11, 19); // '21:33:44' const formattedDate = `${datePart} ${timePart}` - let query = mysql.format(insertQuery, [marker.name, marker.dTIMESTAMPescription, marker.filename, marker.long, marker.lat, formattedDate]); + let query = mysql.format(insertQuery, [marker.name, marker.description, marker.filename, marker.long, marker.lat, formattedDate]); pool.query(query, (err, response) => { if (err) { console.error(err);