Commit 0c6cc2a7 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

commit

parent aac6ce00
...@@ -123,7 +123,10 @@ func (s *wafService) SaveRuleCategoryToDB(ctx context.Context) error { ...@@ -123,7 +123,10 @@ func (s *wafService) SaveRuleCategoryToDB(ctx context.Context) error {
DescriptionZH: category.Description.Zh, DescriptionZH: category.Description.Zh,
Rules: model.RuleList(rules), Rules: model.RuleList(rules),
} }
s.db.Table("waf_rule_categories").Create(&model) err = s.db.Table("waf_rule_categories").Create(&model).Error
if err != nil {
return err
}
} }
return nil return nil
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment