mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-20 20:22:46 +00:00
feat(manager): let illegal status records be flushed with disabled jobs
This commit is contained in:
parent
a0b8ef08ab
commit
3f31e83c14
@ -182,7 +182,7 @@ func (b *boltAdapter) FlushDisabledJobs() (err error) {
|
||||
err = fmt.Errorf("%s; %s", err.Error(), jsonErr)
|
||||
continue
|
||||
}
|
||||
if m.Status == Disabled {
|
||||
if m.Status == Disabled || len(m.Name) == 0 {
|
||||
err = c.Delete()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user