From 9930a16c57452bc6a308a6aea3dd03ec07e23f82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Poul=20Kjeldager=20S=C3=B8rensen?= Date: Mon, 27 Nov 2023 14:34:08 +0100 Subject: [PATCH] fix: cast should be to nullable timespan --- src/WorkflowEngine.Core/ActionExecutor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WorkflowEngine.Core/ActionExecutor.cs b/src/WorkflowEngine.Core/ActionExecutor.cs index 0e41de1..82fb27b 100644 --- a/src/WorkflowEngine.Core/ActionExecutor.cs +++ b/src/WorkflowEngine.Core/ActionExecutor.cs @@ -94,7 +94,7 @@ public async ValueTask 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);