fixed Bug: Database

This commit is contained in:
2026-01-21 14:27:24 +01:00
parent 09bbec6ce3
commit 697e84b5ea

View File

@@ -12,7 +12,7 @@ const pool = mysql
.promise(); .promise();
export const getUser = async () => { export const getUser = async () => {
const [rows] = await pool.query("SELECT username FROM usersNEW"); const [rows] = await pool.query("SELECT username FROM users");
if (rows.length > 0) { if (rows.length > 0) {
const users = rows.map((r) => r.username); const users = rows.map((r) => r.username);
@@ -23,7 +23,7 @@ export const getUser = async () => {
}; };
export const confirmUser = async (username) => { export const confirmUser = async (username) => {
const [rows] = await pool.query("SELECT * FROM usersNEW WHERE username = ?", [ const [rows] = await pool.query("SELECT * FROM users WHERE username = ?", [
username, username,
]); ]);