From 77fde199e13c32c1a9e76379f9ed4de49e1f4068 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 4 Dec 2025 15:25:50 +0100 Subject: [PATCH] Update `invoked` parameter binding in `Get` method The `Get` method in the `RecActionController` class was updated to use the `[FromQuery]` attribute for the `invoked` parameter. This change ensures that the parameter value is explicitly bound from the query string of the HTTP request, improving clarity and alignment with expected usage. --- src/ReC.API/Controllers/RecActionController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReC.API/Controllers/RecActionController.cs b/src/ReC.API/Controllers/RecActionController.cs index 177a4ce..da10cb3 100644 --- a/src/ReC.API/Controllers/RecActionController.cs +++ b/src/ReC.API/Controllers/RecActionController.cs @@ -61,7 +61,7 @@ public class RecActionController(IMediator mediator, IConfiguration config) : Co /// A list of RecActions for the fake profile. [HttpGet("fake")] [ProducesResponseType(StatusCodes.Status200OK)] - public async Task Get(CancellationToken cancel, bool invoked = false) => Ok(await mediator.Send(new ReadRecActionQuery() + public async Task Get(CancellationToken cancel, [FromQuery] bool invoked = false) => Ok(await mediator.Send(new ReadRecActionQuery() { ProfileId = config.GetFakeProfileId(), Invoked = invoked