fix: docs
This commit is contained in:
@@ -19,7 +19,6 @@ func (r *Repository) Get(key string) (*ConfigEntry, error) {
|
||||
}
|
||||
|
||||
func (r *Repository) Upsert(key, value string) error {
|
||||
// Prefer a simple approach that works across sqlite/postgres/mysql.
|
||||
// Try update first, then insert if nothing updated.
|
||||
res := r.db.Model(&ConfigEntry{}).Where("key = ?", key).Update("value", value)
|
||||
if res.Error != nil {
|
||||
|
||||
Reference in New Issue
Block a user