Skip to content

Commit

Permalink
[hotfix] fix GetSystemConfig error
Browse files Browse the repository at this point in the history
  • Loading branch information
runs committed Mar 4, 2023
1 parent 38f7131 commit f128e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/repository/system_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f128e2b

Please sign in to comment.