Refactor InsertResultProcedure execution method

Replaced sender.ExecuteInsertProcedure with sender.Send for executing InsertResultProcedure. Removed the _options.AddedWho parameter, passing only the procedure object and cancellation token. The construction of InsertResultProcedure remains unchanged.
This commit is contained in:
2026-03-24 11:11:36 +01:00
parent 8fb4b4005c
commit 4f0f99e0f8

View File

@@ -148,13 +148,13 @@ public class InvokeRecActionViewCommandHandler(
var statusCode = (short)response.StatusCode; var statusCode = (short)response.StatusCode;
await sender.ExecuteInsertProcedure(new InsertResultProcedure() await sender.Send(new InsertResultProcedure()
{ {
StatusId = statusCode, StatusId = statusCode,
ActionId = action.Id, ActionId = action.Id,
Header = JsonSerializer.Serialize(resHeaders, options: new() { WriteIndented = false }), Header = JsonSerializer.Serialize(resHeaders, options: new() { WriteIndented = false }),
Body = resBody Body = resBody
}, _options.AddedWho, cancel); }, cancel);
return response.IsSuccessStatusCode; return response.IsSuccessStatusCode;
} }