Merge pull request #98 from giesselmann/fix-updateconfig

Fix UpdateConfig
This commit is contained in:
Christoph Kluge 2023-03-21 12:09:40 +01:00 committed by GitHub
commit de71fee61e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,8 +127,8 @@ func (uCfg *UserCfgRepo) UpdateConfig(
return nil return nil
} }
if _, err := uCfg.DB.Exec(`REPLACE INTO configuration (username, confkey, value) VALUES (?, ?, ?)`, user, key, value); err != nil { if _, err := uCfg.DB.Exec(`REPLACE INTO configuration (username, confkey, value) VALUES (?, ?, ?)`, user.Username, key, value); err != nil {
log.Warnf("Error while replacing user config in DB for user '%v'", user) log.Warnf("Error while replacing user config in DB for user '%v'", user.Username)
return err return err
} }