From 9947b93414bb2a5eab50f3687c225fba4ceb27cc Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Thu, 4 Apr 2024 15:54:48 -0600 Subject: [PATCH] Add funny --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 16f63c1..7df38b5 100644 --- a/index.js +++ b/index.js @@ -180,9 +180,9 @@ const deleteExtension = (ext) => { } const updateName = (ext, name) => { - return new Promise((resolve, reject) => { + return new Promise(async (resolve, reject) => { // update the extension name in the `users` table - const conn = pool.getConnection(); + const conn = await pool.getConnection(); conn.query(`UPDATE users SET name = '${name}' WHERE extension = ${ext};`).then((result) => { // Run a reload reload().then((result) => {