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,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)
}
} }
} }