fix(repo,users): incorrect syntax for columns in select

This commit is contained in:
Guz
2025-06-06 16:29:25 -03:00
parent 4bb32f9757
commit d5668af2df

View File

@@ -99,7 +99,7 @@ func (r *UserRepository) GetByUsername(username string) (model.User, error) {
}
q := `
SELECT FROM users (username, password_hash, created_at, updated_at)
SELECT username, password_hash, created_at, updated_at FROM users
WHERE username = :username
`