From a9d1ccde38785191548f8d5e684c30c69eb86dc6 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Mon, 29 May 2023 14:45:00 +1000 Subject: [PATCH] Fix inconsistency with settings storage --- backend/internal/entity/setting/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/entity/setting/model.go b/backend/internal/entity/setting/model.go index e6141ca7..abfa1080 100644 --- a/backend/internal/entity/setting/model.go +++ b/backend/internal/entity/setting/model.go @@ -39,7 +39,7 @@ func (m *Model) LoadByName(name string) error { // Save will save this model to the DB func (m *Model) Save() error { // ensure name is trimmed of whitespace - m.Name = strings.TrimSpace(m.Name) + m.Name = strings.ToLower(strings.TrimSpace(m.Name)) db := database.GetDB() if result := db.Save(m); result.Error != nil {