fixed prune delete when nothing to prune

This commit is contained in:
BroodjeAap 2023-01-06 10:27:38 +00:00
parent 1b14b08509
commit f9742fabec

View file

@ -279,9 +279,11 @@ func (web *Web) pruneDB() {
IDs = append(IDs, b.ID)
}
}
if len(IDs) > 0 {
web.db.Delete(&FilterOutput{}, IDs)
}
}
}
func (web *Web) notify(notifierKey string, message string) {
if notifierKey == "All" {