This commit is contained in:
Lukian LEIZOUR 2024-06-06 14:35:19 +02:00
parent defd655959
commit 08418fd1d6
2 changed files with 5 additions and 5 deletions

View file

@ -128,10 +128,10 @@ function getUnverifiedUsers() {
})
}
function setVerified(userid) {
function setVerified(username) {
return new Promise((resolve, reject) => {
con.query(
`UPDATE users SET verified = 1 WHERE id = ${userid}`,
`UPDATE users SET verified = 1 WHERE usernaùe = ${username}`,
(error, result) => {
if (error) {
reject(new Error(error));