fix bug when inserting~ ips
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9803adfbb9
commit
bdaf6c49a3
@ -64,7 +64,7 @@ func (ip *IP) InsertOrUpdate(cfg *config.Config) (numinsert int64, numupdate int
|
||||
log.Println(err)
|
||||
}
|
||||
} else {
|
||||
numinsert, err = cfg.Db.Insert(&ip)
|
||||
numinsert, err = cfg.Db.Insert(ip)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user