updated query

This commit is contained in:
2026-02-16 10:21:44 +08:00
parent 6821a32490
commit b2b7cacaa6
+1 -1
View File
@@ -19,7 +19,7 @@ func GetUserID(email string) (string, error) {
func CheckEmailInDB(email string) (bool, error) {
var exists bool
query := `SELECT EXISTS (
SELECT 1 FROM users WHERE email_address = ? AND is_deleted = 0)`
SELECT 1 FROM uess_user_management.users WHERE email_address = ? AND is_deleted = 0)`
err := db.DB.QueryRow(query, email).Scan(&exists)
if err != nil {
return false, err