remember to delete from chonks too

This commit is contained in:
Ted Unangst 2020-05-26 00:32:08 -04:00
parent b2da24a9f8
commit d561e65cdc
1 changed files with 3 additions and 0 deletions

View File

@ -223,8 +223,11 @@ func deluser(username string) {
doordie(db, "delete from donks"+where, userid) doordie(db, "delete from donks"+where, userid)
doordie(db, "delete from onts"+where, userid) doordie(db, "delete from onts"+where, userid)
doordie(db, "delete from honkmeta"+where, userid) doordie(db, "delete from honkmeta"+where, userid)
where = " where chonkid in (select chonkid from chonks where userid = ?)"
doordie(db, "delete from donks"+where, userid)
doordie(db, "delete from honks where userid = ?", userid) doordie(db, "delete from honks where userid = ?", userid)
doordie(db, "delete from chonks where userid = ?", userid)
doordie(db, "delete from honkers where userid = ?", userid) doordie(db, "delete from honkers where userid = ?", userid)
doordie(db, "delete from zonkers where userid = ?", userid) doordie(db, "delete from zonkers where userid = ?", userid)
doordie(db, "delete from doovers where userid = ?", userid) doordie(db, "delete from doovers where userid = ?", userid)