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,8 +279,10 @@ func (web *Web) pruneDB() {
IDs = append(IDs, b.ID) IDs = append(IDs, b.ID)
} }
} }
if len(IDs) > 0 {
web.db.Delete(&FilterOutput{}, IDs) web.db.Delete(&FilterOutput{}, IDs)
} }
}
} }
func (web *Web) notify(notifierKey string, message string) { func (web *Web) notify(notifierKey string, message string) {