Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ public CommandEndpointHandler(IMediator mediator, IOptions<CqrsHttpOptions> opti
"Expected ICommand<>, but got null, check if your delegate in MapCommand(route, delegate) returned non-null command");
}

if (command is not IBaseRequest)
{
// not command, return as-is
return command;
}

var response = await _mediator.Send(command);
if (response is null)
{
Expand Down