fix(notice): fix the buf of notice with null record field (#31)

This commit is contained in:
Li4n0
2021-06-21 23:38:04 +08:00
committed by GitHub
parent 6205772a59
commit ef38cbc790
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -58,7 +58,6 @@ func extractTarGz(gzipStream io.Reader) error {
switch header.Typeflag {
case tar.TypeReg:
log.Trace(header.Name)
if !strings.HasSuffix(header.Name, "GeoLite2-City.mmdb") {
continue
}
+1 -1
View File
@@ -13,7 +13,7 @@ type Record interface {
}
type BaseRecord struct {
Record `gorm:"-" json:"-"`
Record `gorm:"-" json:"-" notice:"-"`
ID uint `gorm:"primarykey" form:"id" json:"id" notice:"-"`
RuleName string `gorm:"index" form:"rule_name" json:"rule_name" notice:"rule"`
Flag string `gorm:"index" form:"flag" json:"flag" `