update
This commit is contained in:
parent
7410c9dcd3
commit
c3c70fcdd7
3
rules.go
3
rules.go
@ -5,7 +5,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func resetMsgParsingRules2() error {
|
func resetMsgParsingRules2() error {
|
||||||
var rules
|
var rules []MessageParsingRule{}
|
||||||
_, err := db.Exec(`TRUNCATE TABLE msg_rules;`)
|
_, err := db.Exec(`TRUNCATE TABLE msg_rules;`)
|
||||||
logOnError(err, "resetMsgParsingRules2 : truncate table msg_rules")
|
logOnError(err, "resetMsgParsingRules2 : truncate table msg_rules")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -18,7 +18,6 @@ func resetMsgParsingRules2() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
rules := []MessageParsingRule{}
|
|
||||||
err = json.Unmarshal(b, &rules)
|
err = json.Unmarshal(b, &rules)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user