From f128e2b050b69647e97f9abe468e8334389972ac Mon Sep 17 00:00:00 2001 From: RunsTp Date: Sun, 5 Mar 2023 01:09:54 +0800 Subject: [PATCH] [hotfix] fix GetSystemConfig error --- internal/repository/system_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/repository/system_config.go b/internal/repository/system_config.go index b89b0aa..44cd9a9 100644 --- a/internal/repository/system_config.go +++ b/internal/repository/system_config.go @@ -20,7 +20,7 @@ type SystemConfigMysqlImpl struct { func (m *SystemConfigMysqlImpl) GetSystemConfig(key string) (*idl.SystemConfig, error) { var config *idl.SystemConfig - result := m.tx.Table(systemConfigTableName).Where("`key` = ?", key).Take(&config) + result := m.tx.Table(systemConfigTableName).Where("key = ?", key).Take(&config) if result.Error != nil { if result.Error == gorm.ErrRecordNotFound { return nil, nil