Skip to content

Commit

Permalink
Fixed Frequency Interval configuration when Interval is not set (Time…
Browse files Browse the repository at this point in the history
…Span.Zero) (#127)

Co-authored-by: piaidr <[email protected]>
  • Loading branch information
IdrissPiard and IdrissPiard authored Apr 12, 2024
1 parent 77fee5b commit c927de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MFiles.VAF.Extensions/Configuration/Frequency.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public bool? RunOnVaultStartup
switch (this.RecurrenceType)
{
case RecurrenceType.Interval:
if (null == this.Interval)
if (null == this.Interval || this.Interval == TimeSpan.Zero)
return null;
return (after ?? DateTime.UtcNow).Add(this.Interval);
case RecurrenceType.Schedule:
Expand Down

0 comments on commit c927de4

Please sign in to comment.