fixed Bug: Database
This commit is contained in:
@@ -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,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user