Skip to content

Remove unused method parameter requestBody in ExecuteWorkflowAsync #704

@ziagham

Description

@ziagham

What version of FlowSynx?

1.2.3

Describe the bug

File: src/FlowSynx.Infrastructure/Workflow/Triggers/HttpBased/WorkflowHttpTriggerProcessor.cs
Method: ExecuteWorkflowAsync

The method ExecuteWorkflowAsync currently has an unused parameter requestBody.

private async Task ExecuteWorkflowAsync(
    WorkflowTriggerEntity trigger,
    string? requestBody,
    CancellationToken cancellationToken)
{
    // method implementation
}

Since requestBody is not used anywhere in the method, it should be removed to clean up the code and avoid compiler warnings.

Also, note where ExecuteWorkflowAsync is called at line 61; it should be updated as follows:

_workflowHttpListener.RegisterRoute(trigger.UserId, method, route, async (request) =>
{
    await ExecuteWorkflowAsync(trigger, request.Body, cancellationToken);
});

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions