We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dde368f commit a9d1ccdCopy full SHA for a9d1ccd
backend/internal/entity/setting/model.go
@@ -39,7 +39,7 @@ func (m *Model) LoadByName(name string) error {
39
// Save will save this model to the DB
40
func (m *Model) Save() error {
41
// ensure name is trimmed of whitespace
42
- m.Name = strings.TrimSpace(m.Name)
+ m.Name = strings.ToLower(strings.TrimSpace(m.Name))
43
44
db := database.GetDB()
45
if result := db.Save(m); result.Error != nil {
0 commit comments