diff --git a/routes/api.js b/routes/api.js index 5a27087..93f5cac 100644 --- a/routes/api.js +++ b/routes/api.js @@ -263,7 +263,7 @@ router.get("/verify-mail", async (req, res) => { var data = { verify: 1, }; - db_connect.query( + conn.query( 'UPDATE users SET ? WHERE email ="' + result[0].email + '"', data, function (err, result) {