1
This commit is contained in:
@@ -190,7 +190,6 @@ func GetPlaces(ctx *jxcontext.Context, keyword string, includeDisabled bool, par
|
||||
sqlParams = append(sqlParams, params["level"])
|
||||
}
|
||||
sql += " ORDER BY t1.level, t1.name"
|
||||
// globals.SugarLogger.Debug(sql)
|
||||
places := []*model.Place{}
|
||||
return places, dao.GetRows(nil, &places, sql, sqlParams)
|
||||
}
|
||||
@@ -495,7 +494,7 @@ func UpdateConfig(ctx *jxcontext.Context, key, configType, value string) (hint s
|
||||
hint = "1"
|
||||
|
||||
db := dao.GetDB()
|
||||
txDB , _ := dao.Begin(db)
|
||||
txDB, _ := dao.Begin(db)
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
dao.Rollback(db, txDB)
|
||||
|
||||
Reference in New Issue
Block a user