Skip to content

Commit a9d1ccd

Browse files
committed
Fix inconsistency with settings storage
1 parent dde368f commit a9d1ccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/internal/entity/setting/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (m *Model) LoadByName(name string) error {
3939
// Save will save this model to the DB
4040
func (m *Model) Save() error {
4141
// ensure name is trimmed of whitespace
42-
m.Name = strings.TrimSpace(m.Name)
42+
m.Name = strings.ToLower(strings.TrimSpace(m.Name))
4343

4444
db := database.GetDB()
4545
if result := db.Save(m); result.Error != nil {

0 commit comments

Comments
 (0)