fixed prune delete when nothing to prune
This commit is contained in:
parent
1b14b08509
commit
f9742fabec
1 changed files with 3 additions and 1 deletions
4
main.go
4
main.go
|
@ -279,7 +279,9 @@ func (web *Web) pruneDB() {
|
||||||
IDs = append(IDs, b.ID)
|
IDs = append(IDs, b.ID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
web.db.Delete(&FilterOutput{}, IDs)
|
if len(IDs) > 0 {
|
||||||
|
web.db.Delete(&FilterOutput{}, IDs)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue