Browse Source

fixed: get traces

xf 1 year ago
parent
commit
b09eb9fd8c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/Hotline.Api/Controllers/WorkflowController.cs

+ 1 - 2
src/Hotline.Api/Controllers/WorkflowController.cs

@@ -458,8 +458,7 @@ public class WorkflowController : BaseController
             .OrderBy(d => d.CreationTime)
             .ToTreeAsync(d => d.Traces, d => d.ParentId, null);
 
-        var a = _mapper.Map<WorkflowDto>(workflow);
-        return a;
+        return _mapper.Map<WorkflowDto>(workflow);
     }
 
     /// <summary>