when deleting honk, delete old revs
This commit is contained in:
parent
4059b207a1
commit
27b3b8a7c0
|
@ -394,7 +394,11 @@ func deleteextras(honkid int64) {
|
||||||
|
|
||||||
func deletehonk(honkid int64) {
|
func deletehonk(honkid int64) {
|
||||||
deleteextras(honkid)
|
deleteextras(honkid)
|
||||||
_, err := stmtDeleteHonk.Exec(honkid)
|
_, err := stmtDeleteMeta.Exec(honkid, "nonsense")
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("error deleting: %s", err)
|
||||||
|
}
|
||||||
|
_, err = stmtDeleteHonk.Exec(honkid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("error deleting: %s", err)
|
log.Printf("error deleting: %s", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue