fix
This commit is contained in:
parent
c3c70fcdd7
commit
011f5c1200
4
rules.go
4
rules.go
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user