Remove unneeded log
This commit is contained in:
parent
b611550ff5
commit
fe70d0aba3
1
index.js
1
index.js
|
@ -83,7 +83,6 @@ app.use(express.static('public'));
|
|||
const addAnalytic = (tag) => {
|
||||
pool.getConnection().then(conn => {
|
||||
conn.query("SELECT * FROM analytics WHERE tag = ?", [tag]).then((rows) => {
|
||||
console.log(rows);
|
||||
if (rows.length === 0) {
|
||||
conn.query("INSERT INTO analytics (tag, count) VALUES (?, 1)", [tag]).catch(err => {
|
||||
console.error('Error creating analytics:', err);
|
||||
|
|
Loading…
Reference in a new issue