This commit is contained in:
scossa 2024-09-16 23:03:28 +02:00
parent dc29a8d5ec
commit f773f4e53b

View file

@ -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);