More changes to promise chain testing

This commit is contained in:
Bradley Bickford 2023-11-11 21:23:49 -05:00
parent 6ea91cd1c9
commit 43546d93fe

View File

@ -5,12 +5,14 @@ var connection_pool = mysql.createPool({
host: "10.26.48.207",
user: mysql_username,
password: mysql_password,
database: db_name,
database: 'breadbot_test',
connectionLimit: 10
}).promise()
await connection_pool.query("SELECT * FROM servers").then(([rows, fields]) => {
connection_pool.query("SELECT * FROM servers").then(([rows, fields]) => {
console.log(rows)
connection_pool.query("SELECT * FROM channels").then(([rows, fields]) => {
console.log(rows)
return "SOME TEXT"
})
}).then(console.log)