From 2b5e63cb451947a7871e4e7271a72c8f605c4750 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 30 Mar 2026 11:22:57 +0200 Subject: [PATCH] Update result status handling in InsertResultCommand Replaced StatusId with Status property in InsertResultCommand, mapping HTTP status codes to application-specific status enums using ToStatus(). Exception handling now sets Status to QueryFailed. Removed usage of StatusId. --- .../RecActions/Commands/InvokeRecActionViewCommand.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs index e0e9cb3..8d7851d 100644 --- a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs +++ b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs @@ -146,7 +146,7 @@ public class InvokeRecActionViewCommandHandler( await sender.Send(new InsertResultCommand() { - StatusId = statusCode, + Status = response.StatusCode.ToStatus(), ActionId = action.Id, Header = JsonSerializer.Serialize(resHeaders, options: new() { WriteIndented = false }), Body = resBody, @@ -157,6 +157,7 @@ public class InvokeRecActionViewCommandHandler( { await sender.Send(new InsertResultCommand() { + Status = Status.QueryFailed, ActionId = action.Id, Error = ex.ToString(), Type = ResultType.Main