mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(dir): ♻ lint ChangesController
This commit is contained in:
parent
7ae5bdfcf0
commit
a51f6faa6a
1 changed files with 3 additions and 4 deletions
|
|
@ -20,10 +20,9 @@ public ChangesController(IMemoryCache cache, IMediator mediator) : base(cache)
|
|||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
/// <returns>The changes.</returns>
|
||||
[HttpGet]
|
||||
//[ProducesResponseType(typeof(IEnumerable<GetChanges.ChangesVm>), StatusCodes.Status200OK)]
|
||||
public async Task<IActionResult> Get(CancellationToken cancellationToken)
|
||||
[ProducesResponseType(typeof(List<GetChanges.ChangesVm>), StatusCodes.Status200OK)]
|
||||
public Task<IActionResult> 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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue