fix bug when inserting~ ips
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2022-03-29 10:14:40 +02:00
parent 9803adfbb9
commit bdaf6c49a3

View File

@ -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)
}