Skip to content

Commit

Permalink
Set the default value for Interval to match DefaultValue (should fix e…
Browse files Browse the repository at this point in the history
  • Loading branch information
mohdali committed Feb 17, 2024
1 parent 177891c commit f85615f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/Elsa.Scheduling/Activities/Timer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Timer(Input<TimeSpan> interval, [CallerFilePath] string? source = default
/// The interval at which the timer should execute.
/// </summary>
[Input(Description = "The interval at which the timer should execute.", DefaultValue = "00:01:00")]
public Input<TimeSpan> Interval { get; set; } = default!;
public Input<TimeSpan> Interval { get; set; } = new(TimeSpan.FromMinutes(1));

/// <inheritdoc />
protected override async ValueTask ExecuteAsync(ActivityExecutionContext context)
Expand Down

0 comments on commit f85615f

Please sign in to comment.