shouldexecute checks deleted
This commit is contained in:
@@ -10,6 +10,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (feed Feed) ShouldExecute() (bool, error) {
|
func (feed Feed) ShouldExecute() (bool, error) {
|
||||||
|
if feed.Entry.Deleted.IsZero() {
|
||||||
|
return false, nil
|
||||||
|
}
|
||||||
|
|
||||||
schedule, err := cron.NewParser(
|
schedule, err := cron.NewParser(
|
||||||
cron.SecondOptional |
|
cron.SecondOptional |
|
||||||
cron.Minute |
|
cron.Minute |
|
||||||
|
|||||||
Reference in New Issue
Block a user