diff --git a/vingo/database/users.go b/vingo/database/users.go index 613dfa0..1d57f5b 100644 --- a/vingo/database/users.go +++ b/vingo/database/users.go @@ -34,7 +34,7 @@ func GetUser(user_id int) (*User, error) { func GetUserFromCard(card_serial string) (*User, error) { row := db.QueryRow(` - SELECT users.id, users.username, users.admin, users.leaderboard, users.public + SELECT users.id, users.username, users.admin FROM users JOIN cards ON users.id = cards.user_id WHERE cards.serial = $1;