Skip to content

Commit

Permalink
fix: cast should be to nullable timespan
Browse files Browse the repository at this point in the history
  • Loading branch information
pksorensen committed Nov 27, 2023
1 parent 73d2afd commit 9930a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WorkflowEngine.Core/ActionExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public async ValueTask<IActionResult> ExecuteAsync(IRunContext context, IWorkflo
Key = action.Key,
Status = "Succeded",
Result = actionResult,
DelayNextAction = (actionImplementation is IWaitAction) ? (TimeSpan)actionResult: null
DelayNextAction = (actionImplementation is IWaitAction) ? (TimeSpan?)actionResult: null
};

await _outputsRepository.AddAsync(context, workflow, action, result);
Expand Down

0 comments on commit 9930a16

Please sign in to comment.