some people are determined to fill my database with tombstones,

so only save zonk if we deleted something
This commit is contained in:
Ted Unangst 2023-07-31 22:54:53 -04:00
parent 592c189e8b
commit 2e82a931b9
1 changed files with 4 additions and 4 deletions

View File

@ -315,10 +315,10 @@ func eradicatexonk(userid int64, xid string) {
xonk := getxonk(userid, xid)
if xonk != nil {
deletehonk(xonk.ID)
}
_, err := stmtSaveZonker.Exec(userid, xid, "zonk")
if err != nil {
elog.Printf("error eradicating: %s", err)
_, err := stmtSaveZonker.Exec(userid, xid, "zonk")
if err != nil {
elog.Printf("error eradicating: %s", err)
}
}
}