fix: docs

This commit is contained in:
2026-03-25 00:11:57 +01:00
parent ad656fd636
commit bfeeaa1190
2 changed files with 0 additions and 4 deletions

View File

@@ -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 {