select fot struct

This commit is contained in:
Your Name 2023-09-19 18:15:53 -04:00
parent 07364ae267
commit 7a98c5e3d9
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ func Get(username string) (*UserData, bool) {
log.Printf("scsusers.Get: %s", err.Error())
return nil, false
}
q = fmt.Sprintf("select key, value, id from %s_meta where user=%d", c.TablePrefix, u.UserID)
q = fmt.Sprintf("select meta_key, meta_value, id from %s_meta where user=%d", c.TablePrefix, u.UserID)
err = c.db.Select(&u.Meta, q)
if err != nil && err != sql.ErrNoRows {
log.Printf("scsuser.Get: select: %s", err.Error())