mirror of
https://github.com/1f349/lavender.git
synced 2024-12-22 07:34:06 +00:00
Fix table column typo
This commit is contained in:
parent
9eec5b7ec1
commit
b1fc0d59fe
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user