From 9d15dfe8a5f550a506546f69b2e77aa1d79e1139 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 4 Dec 2025 15:17:38 +0100 Subject: [PATCH] Add 'invoked' parameter to Get method in controller Updated the Get method in RecActionController to include a new optional parameter, `invoked`, with a default value of `false`. Updated XML documentation to reflect this change. Modified the `ReadRecActionQuery` initialization to pass the `invoked` parameter. Removed the previous method signature that only accepted a `CancellationToken`. --- src/ReC.API/Controllers/RecActionController.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ReC.API/Controllers/RecActionController.cs b/src/ReC.API/Controllers/RecActionController.cs index 2d7895e..177a4ce 100644 --- a/src/ReC.API/Controllers/RecActionController.cs +++ b/src/ReC.API/Controllers/RecActionController.cs @@ -57,12 +57,14 @@ public class RecActionController(IMediator mediator, IConfiguration config) : Co /// Gets all RecActions for a fake/test profile. /// /// A token to cancel the operation. + /// /// A list of RecActions for the fake profile. [HttpGet("fake")] [ProducesResponseType(StatusCodes.Status200OK)] - public async Task Get(CancellationToken cancel) => Ok(await mediator.Send(new ReadRecActionQuery() + public async Task Get(CancellationToken cancel, bool invoked = false) => Ok(await mediator.Send(new ReadRecActionQuery() { - ProfileId = config.GetFakeProfileId() + ProfileId = config.GetFakeProfileId(), + Invoked = invoked }, cancel)); ///