diff --git a/internal/repository/user.go b/internal/repository/user.go index 759ed5b..d8f86a1 100644 --- a/internal/repository/user.go +++ b/internal/repository/user.go @@ -136,9 +136,8 @@ func (uCfg *UserCfgRepo) UpdateConfig( return nil } - if _, err := uCfg.DB.Exec(`REPLACE INTO configuration (username, confkey, value) VALUES (?, ?, ?)`, - user, key, value); err != nil { - log.Warnf("Error while replacing user config in DB for user '$#v'", user) + if _, err := uCfg.DB.Exec(`REPLACE INTO configuration (username, confkey, value) VALUES (?, ?, ?)`, user, key, value); err != nil { + log.Warnf("Error while replacing user config in DB for user '%v'", user) return err }