Fix table column typo

This commit is contained in:
Melon 2024-02-22 14:37:22 +00:00
parent 9eec5b7ec1
commit b1fc0d59fe
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -56,7 +56,7 @@ func (t *Tx) GetUserRoles(sub string) (string, error) {
func (t *Tx) GetUser(sub string) (*User, error) { func (t *Tx) GetUser(sub string) (*User, error) {
var u User var u User
row := t.tx.QueryRow(`SELECT email, email_verified, roles, userifo, updated_at, active FROM users WHERE subject = ?`, sub) row := t.tx.QueryRow(`SELECT email, email_verified, roles, userinfo, updated_at, active FROM users WHERE subject = ?`, sub)
err := row.Scan(&u.Email, &u.EmailVerified, &u.Roles, &u.UserInfo, &u.UpdatedAt, &u.Active) err := row.Scan(&u.Email, &u.EmailVerified, &u.Roles, &u.UserInfo, &u.UpdatedAt, &u.Active)
u.Sub = sub u.Sub = sub
return &u, err return &u, err