Add funny

This commit is contained in:
Christopher Cookman 2024-04-04 15:54:48 -06:00
parent 8640d46db5
commit 9947b93414
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -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) => {