This commit is contained in:
shoopea 2019-12-29 16:40:52 +08:00
parent c3c70fcdd7
commit 011f5c1200

View File

@ -5,7 +5,7 @@ import (
)
func resetMsgParsingRules2() error {
var rules []MessageParsingRule{}
var rules []MessageParsingRule
_, err := db.Exec(`TRUNCATE TABLE msg_rules;`)
logOnError(err, "resetMsgParsingRules2 : truncate table msg_rules")
if err != nil {
@ -17,7 +17,7 @@ func resetMsgParsingRules2() error {
if err != nil {
return err
}
err = json.Unmarshal(b, &rules)
return nil