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
2
main.go
2
main.go
|
@ -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" {
|
||||
|
|
Loading…
Add table
Reference in a new issue