This commit is contained in:
2026-01-06 09:11:28 +08:00
parent 679a7a9a42
commit 4068992e06
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import (
func GetUserID(email string) (string, error) {
log.Print(email)
query := `SELECT user_id, FROM users WHERE email_address = ? AND is_deleted = 0 LIMIT 1;`
query := `SELECT user_id FROM users WHERE email_address = ? AND is_deleted = 0 LIMIT 1;`
var id string
err := db.DB.QueryRow(query, email).Scan(&id)
if err != nil {