From a51f6faa6a2cd55b043b6aabf55fc50d0b6dda47 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Fri, 26 Nov 2021 15:19:54 -0600 Subject: [PATCH] =?UTF-8?q?refactor(dir):=20=E2=99=BB=20lint=20ChangesCont?= =?UTF-8?q?roller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/ChangesController.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/services/Directory/FilterLists.Directory.Api/Controllers/ChangesController.cs b/services/Directory/FilterLists.Directory.Api/Controllers/ChangesController.cs index 5601994e0..20ffc583f 100644 --- a/services/Directory/FilterLists.Directory.Api/Controllers/ChangesController.cs +++ b/services/Directory/FilterLists.Directory.Api/Controllers/ChangesController.cs @@ -20,10 +20,9 @@ public ChangesController(IMemoryCache cache, IMediator mediator) : base(cache) /// The cancellation token. /// The changes. [HttpGet] - //[ProducesResponseType(typeof(IEnumerable), StatusCodes.Status200OK)] - public async Task Get(CancellationToken cancellationToken) + [ProducesResponseType(typeof(List), StatusCodes.Status200OK)] + public Task Get(CancellationToken cancellationToken) { - return Ok(await _mediator.Send(new GetChanges.Query(), cancellationToken)); - //return CacheGetOrCreateAsync(() => _mediator.Send(new GetChanges.Query(), cancellationToken)); + return CacheGetOrCreateAsync(() => _mediator.Send(new GetChanges.Query(), cancellationToken)); } }