Skip to content

Commit

Permalink
Potential fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigHawker committed Oct 27, 2024
1 parent dca776d commit 2de4046
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ public class Schedule
// Get the next execution date from the triggers.
var next = this.Triggers?
.Select(t => t.GetNextExecution(after, timeZoneInfo))
.Where(d => d.HasValue && d.Value.DateTime != DateTime.MinValue)
.Where(d => d.HasValue)
.Where(d => d.Value.DateTime != DateTime.MinValue)
.OrderBy(d => d);
return next.Any() ? next.First() : null;
}
Expand Down

0 comments on commit 2de4046

Please sign in to comment.