diff --git a/src/ReC.API/Controllers/RecActionController.cs b/src/ReC.API/Controllers/RecActionController.cs index da10cb3..543186d 100644 --- a/src/ReC.API/Controllers/RecActionController.cs +++ b/src/ReC.API/Controllers/RecActionController.cs @@ -48,10 +48,7 @@ public class RecActionController(IMediator mediator, IConfiguration config) : Co /// A list of RecActions for the specified profile. [HttpGet] [ProducesResponseType(StatusCodes.Status200OK)] - public async Task Get([FromQuery] long profileId, CancellationToken cancel) => Ok(await mediator.Send(new ReadRecActionQuery() - { - ProfileId = profileId - }, cancel)); + public async Task Get([FromQuery] ReadRecActionQuery query, CancellationToken cancel) => Ok(await mediator.Send(query, cancel)); /// /// Gets all RecActions for a fake/test profile.