From 4f0f99e0f8027a2a8b9cdb97dc857f1f27785620 Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 24 Mar 2026 11:11:36 +0100 Subject: [PATCH] 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. --- .../RecActions/Commands/InvokeRecActionViewCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs index a7d5224..f252a8e 100644 --- a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs +++ b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs @@ -148,13 +148,13 @@ public class InvokeRecActionViewCommandHandler( var statusCode = (short)response.StatusCode; - await sender.ExecuteInsertProcedure(new InsertResultProcedure() + await sender.Send(new InsertResultProcedure() { StatusId = statusCode, ActionId = action.Id, Header = JsonSerializer.Serialize(resHeaders, options: new() { WriteIndented = false }), Body = resBody - }, _options.AddedWho, cancel); + }, cancel); return response.IsSuccessStatusCode; }