select fot struct

This commit is contained in:
Your Name 2023-09-19 18:10:57 -04:00
parent 55c456828b
commit 2610b409ff
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ func Get(username string) (*UserData, bool) {
u := NewUser() u := NewUser()
q := fmt.Sprintf("select username, password, id from %s_auth where username=?", c.TablePrefix) q := fmt.Sprintf("select username, password, id from %s_auth where username=?", c.TablePrefix)
err := c.db.Get(&u, q, username) err := c.db.Select(&u, q, username)
if err != nil { if err != nil {
if err == sql.ErrNoRows { if err == sql.ErrNoRows {
return nil, false return nil, false