zwxi пре 11 месеци
родитељ
комит
61a7036207
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      models/smart_report.go

+ 1 - 1
models/smart_report.go

@@ -212,7 +212,7 @@ type SmartReportResource struct {
 }
 
 func GetResourceItemById(id int) (item *SmartReportResource, err error) {
-	o := orm.NewOrmUsingDB("rddp")
+	o := orm.NewOrm()
 	sql := fmt.Sprintf(`SELECT * FROM smart_report_resource WHERE resource_id = ? LIMIT 1`)
 	err = o.Raw(sql, id).QueryRow(&item)
 	return