From b1fc0d59fe690d1fb02e68cd9674a2a36d927a3a Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Thu, 22 Feb 2024 14:37:22 +0000 Subject: [PATCH] Fix table column typo --- database/tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/tx.go b/database/tx.go index 86a4abc..870986f 100644 --- a/database/tx.go +++ b/database/tx.go @@ -56,7 +56,7 @@ func (t *Tx) GetUserRoles(sub string) (string, error) { func (t *Tx) GetUser(sub string) (*User, error) { 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) u.Sub = sub return &u, err