Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix config updates #637

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update site.go
alikhanich authored Aug 23, 2024
commit 7e6c2e12178bff4aafca0b1a0d4f857fb7ed938d
4 changes: 1 addition & 3 deletions plugins/admin/models/site.go
Original file line number Diff line number Diff line change
@@ -62,8 +62,7 @@ func (t SiteModel) Init(cfg map[string]string) SiteModel {
if db.CheckError(err, db.INSERT) {
panic(err)
}
} else {
if value != "" {
} else if value != "" {
_, err := t.Table(t.TableName).
Where("key", "=", key).Update(dialect.H{
"value": value,
@@ -72,7 +71,6 @@ func (t SiteModel) Init(cfg map[string]string) SiteModel {
panic(err)
}
}
}
}
return t
}