lint and format

This commit is contained in:
0d0acre 2024-09-21 02:20:54 +02:00
parent be0c66110a
commit f684d4e2c8

View file

@ -11,7 +11,7 @@ const pool = mysql.createPool({
function addMarker(marker) {
const insertQuery = "INSERT INTO markers VALUES (?,?,?,POINT(?,?),?)";
const date = new Date();
const query = mysql.format(insertQuery, [
marker.name,
marker.description,
@ -20,7 +20,7 @@ function addMarker(marker) {
marker.lat,
date,
]);
pool.query(query, (err, response) => {
if (err) {
console.error(err);
@ -51,8 +51,6 @@ function getUpdatedMarkers(fromDate, callback) {
connection.release(); // return the connection to pool
if (err) throw err;
callback(rows);
console.log(rows)
});
});
}