up
This commit is contained in:
parent
dc29a8d5ec
commit
f773f4e53b
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ function addMarker(marker) {
|
||||||
const datePart = date.slice(0, 10); // '2024-09-06'
|
const datePart = date.slice(0, 10); // '2024-09-06'
|
||||||
const timePart = date.slice(11, 19); // '21:33:44'
|
const timePart = date.slice(11, 19); // '21:33:44'
|
||||||
const formattedDate = `${datePart} ${timePart}`
|
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) => {
|
pool.query(query, (err, response) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
|
Loading…
Reference in a new issue