Skip to content

Commit

Permalink
vingo: shouln't mess with the database in prod 🙃
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-dev committed Jun 16, 2024
1 parent 46e1f22 commit cacc339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vingo/database/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cacc339

Please sign in to comment.