This commit is contained in:
Your Name 2023-10-06 19:41:11 -04:00
parent fc10a22bde
commit 11fce401e7
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ func (u *UserData) Set(key, value string) error {
}
}
var insertid int64
err := c.db.Get(&insertid, fmt.Sprintf("insert into %s_meta (userid, meta_key, meta_value) VALUES (?,?,?) returning id", c.TablePrefix), u.UserID, key, value)
err := c.db.Get(&insertid, fmt.Sprintf("insert into %s_meta (user, meta_key, meta_value) VALUES (?,?,?) returning id", c.TablePrefix), u.UserID, key, value)
if err != nil {
log.Printf("scsauth: set: insert: %s", err.Error())
return err