commit
This commit is contained in:
parent
8f435bbeda
commit
cbe05f3937
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
const mysql = require("mysql");
|
||||
|
||||
export function getConnection() {
|
||||
function getConnection() {
|
||||
return mysql.createConnection({
|
||||
host: process.env.MysqlHost,
|
||||
user: process.env.MysqlUser,
|
||||
|
@ -117,7 +117,7 @@ function addUser(connection, username, name, lastname, password) {
|
|||
// | ADMIN |
|
||||
// +-----------------------------------+
|
||||
|
||||
export function getUnverifiedUsers(connection) {
|
||||
function getUnverifiedUsers(connection) {
|
||||
return new Promise((resolve, reject) => {
|
||||
connection.query(
|
||||
`SELECT * FROM users WHERE verified = 0`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue