diff --git a/services/Directory/FilterLists.Directory.Api/Controllers/ChangesController.cs b/services/Directory/FilterLists.Directory.Api/Controllers/ChangesController.cs index e1603f42b..2cd43e23f 100644 --- a/services/Directory/FilterLists.Directory.Api/Controllers/ChangesController.cs +++ b/services/Directory/FilterLists.Directory.Api/Controllers/ChangesController.cs @@ -1,4 +1,6 @@ -using FilterLists.Directory.Application.Queries; +#if DEBUG + +using FilterLists.Directory.Application.Queries; using MediatR; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Caching.Memory; @@ -40,3 +42,5 @@ public Task GetDetails(long id, CancellationToken cancellationTok return CacheGetOrCreateAsync(() => _mediator.Send(new GetChange.Query(id), cancellationToken), id); } } + +#endif diff --git a/services/Directory/FilterLists.Directory.Api/Controllers/ListsController.cs b/services/Directory/FilterLists.Directory.Api/Controllers/ListsController.cs index 0b051b456..9cfd08773 100644 --- a/services/Directory/FilterLists.Directory.Api/Controllers/ListsController.cs +++ b/services/Directory/FilterLists.Directory.Api/Controllers/ListsController.cs @@ -28,6 +28,8 @@ public Task Get(CancellationToken cancellationToken) return CacheGetOrCreateAsync(() => _mediator.Send(new GetLists.Query(), cancellationToken)); } +#if DEBUG + /// /// Creates the FilterList. /// @@ -44,6 +46,8 @@ public async Task Create(CreateList.Command command, Cancellation new { id = response.ChangeId }); } +#endif + /// /// Gets the details of the FilterList. ///