some people are determined to fill my database with tombstones,
so only save zonk if we deleted something
This commit is contained in:
parent
592c189e8b
commit
2e82a931b9
|
@ -315,10 +315,10 @@ func eradicatexonk(userid int64, xid string) {
|
||||||
xonk := getxonk(userid, xid)
|
xonk := getxonk(userid, xid)
|
||||||
if xonk != nil {
|
if xonk != nil {
|
||||||
deletehonk(xonk.ID)
|
deletehonk(xonk.ID)
|
||||||
}
|
_, err := stmtSaveZonker.Exec(userid, xid, "zonk")
|
||||||
_, err := stmtSaveZonker.Exec(userid, xid, "zonk")
|
if err != nil {
|
||||||
if err != nil {
|
elog.Printf("error eradicating: %s", err)
|
||||||
elog.Printf("error eradicating: %s", err)
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue