fix ToWorkflowExecution

This commit is contained in:
pb 2024-08-07 15:16:12 +02:00
parent fe78927e73
commit 6df71bde1d

View File

@ -195,7 +195,7 @@ func (l *LibData) ToWorkspace() *workspace.Workspace {
return nil
}
func (l *LibData) ToWorkflowExecution() *workflow_execution.WorkflowExecution {
if l.Data.GetAccessor().GetType() == utils.WORKSPACE.String() {
if l.Data.GetAccessor().GetType() == utils.WORKFLOW_EXECUTION.String() {
return l.Data.(*workflow_execution.WorkflowExecution)
}
return nil