From df2ebe0cc27a485ab21f5ea737e0061111053557 Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 14 Jan 2026 15:00:22 +0100 Subject: [PATCH] Refactor to use ExecuteInsertProcedure for result insert Replaced sender.Send and ToObjectProcedure with sender.ExecuteInsertProcedure, passing the InsertResultProcedure object, AddedWho config, and cancellation token directly. This simplifies and clarifies the result insertion process. --- .../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 a1040da..02337a1 100644 --- a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs +++ b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs @@ -134,13 +134,13 @@ public class InvokeRecActionViewCommandHandler( var statusCode = (short)response.StatusCode; - await sender.Send(new InsertResultProcedure() + await sender.ExecuteInsertProcedure(new InsertResultProcedure() { StatusId = statusCode, ActionId = action.Id, Header = JsonSerializer.Serialize(resHeaders, options: new() { WriteIndented = false }), Body = resBody - }.ToObjectProcedure(config?["AddedWho"]), cancel); + }, config?["AddedWho"], cancel); return response.IsSuccessStatusCode; }