diff --git a/server/dbHandler.js b/server/dbHandler.js index 1d40153..1a8a165 100644 --- a/server/dbHandler.js +++ b/server/dbHandler.js @@ -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) }); }); }