Pretty sure I have a working chain example
This commit is contained in:
parent
43546d93fe
commit
ac672e73d0
@ -9,9 +9,9 @@ var connection_pool = mysql.createPool({
|
||||
connectionLimit: 10
|
||||
}).promise()
|
||||
|
||||
connection_pool.query("SELECT * FROM servers").then(([rows, fields]) => {
|
||||
connection_pool.query("SELECT * FROM servers").then(async ([rows, fields]) => {
|
||||
console.log(rows)
|
||||
connection_pool.query("SELECT * FROM channels").then(([rows, fields]) => {
|
||||
return await connection_pool.query("SELECT * FROM channels").then(([rows, fields]) => {
|
||||
console.log(rows)
|
||||
return "SOME TEXT"
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user