diff --git a/db.js b/db.js index cfadf33b860426ee0d292852c249959c39704ad8..b8a257562caeecbd4b8f73af4e2d4108bb63d81c 100644 --- a/db.js +++ b/db.js @@ -11,12 +11,6 @@ const pool = mysql.createPool({ queueLimit: 0 }); -db.connect((err) => { - if (err) { - console.error('Error connecting to the database:', err); - } else { - console.log('Connected to the database'); - } - }); - + + module.exports = pool;