Fixed signup bug

This commit is contained in:
estherdev03
2025-03-19 04:10:41 -06:00
parent c75fa01392
commit 1e17449c45
3 changed files with 168 additions and 215 deletions

View File

@@ -1,6 +1,6 @@
const mysql = require("mysql2");
//Create a pool of connection to allow multiple query happen at the same time
//Create a pool of connections to allow multiple query happen at the same time
const pool = mysql.createPool({
host: "localhost",
user: "root",
@@ -8,4 +8,5 @@ const pool = mysql.createPool({
password: "12345678",
});
//Export a promise for promise-based query
module.exports = pool.promise();