aa
This commit is contained in:
@@ -10,7 +10,7 @@ func GetConfig(db *sqlx.DB, configType, key string) (config *model.NewConfig, er
|
|||||||
configs []*model.NewConfig
|
configs []*model.NewConfig
|
||||||
)
|
)
|
||||||
sql := `
|
sql := `
|
||||||
SELECT * FROM new_config WHERE type = ? AND key = ?
|
SELECT * FROM new_config WHERE ` + "`type`" + ` = ? AND key = ?
|
||||||
`
|
`
|
||||||
sqlParams := []interface{}{configType, key}
|
sqlParams := []interface{}{configType, key}
|
||||||
if err = db.Select(&configs, sql, sqlParams...); err == nil && len(configs) > 0 {
|
if err = db.Select(&configs, sql, sqlParams...); err == nil && len(configs) > 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user