mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-21 04:42: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)
|
err = fmt.Errorf("%s; %s", err.Error(), jsonErr)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if m.Status == Disabled {
|
if m.Status == Disabled || len(m.Name) == 0 {
|
||||||
err = c.Delete()
|
err = c.Delete()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user