diff --git a/src/Certify.Server/Certify.Server.Api.Public.Client/Certify.API.Public.cs b/src/Certify.Server/Certify.Server.Api.Public.Client/Certify.API.Public.cs index 14dfc1607..c55f1ae1f 100644 --- a/src/Certify.Server/Certify.Server.Api.Public.Client/Certify.API.Public.cs +++ b/src/Certify.Server/Certify.Server.Api.Public.Client/Certify.API.Public.cs @@ -3262,7 +3262,7 @@ public virtual async System.Threading.Tasks.TaskOK /// A server side error occurred. - public virtual System.Threading.Tasks.Task> FlushHubManagedInstancesAsync() + public virtual System.Threading.Tasks.Task FlushHubManagedInstancesAsync() { return FlushHubManagedInstancesAsync(System.Threading.CancellationToken.None); } @@ -3270,7 +3270,7 @@ public virtual async System.Threading.Tasks.TaskA cancellation token that can be used by other objects or threads to receive notice of cancellation. /// OK /// A server side error occurred. - public virtual async System.Threading.Tasks.Task> FlushHubManagedInstancesAsync(System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task FlushHubManagedInstancesAsync(System.Threading.CancellationToken cancellationToken) { var client_ = _httpClient; var disposeClient_ = false; @@ -3279,7 +3279,6 @@ public virtual async System.Threading.Tasks.Task>(response_, headers_, cancellationToken).ConfigureAwait(false); - if (objectResponse_.Object == null) - { - throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); - } - return objectResponse_.Object; + return; } else { diff --git a/src/Certify.Server/Certify.Server.Api.Public/Controllers/internal/HubController.cs b/src/Certify.Server/Certify.Server.Api.Public/Controllers/internal/HubController.cs index 13687ac78..86983db3f 100644 --- a/src/Certify.Server/Certify.Server.Api.Public/Controllers/internal/HubController.cs +++ b/src/Certify.Server/Certify.Server.Api.Public/Controllers/internal/HubController.cs @@ -101,7 +101,7 @@ public async Task GetHubManagedInstances() [HttpGet] [Route("flush")] [Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)] - [ProducesResponseType(StatusCodes.Status200OK, Type = typeof(List))] + [ProducesResponseType(StatusCodes.Status200OK)] public async Task FlushHubManagedInstances() { _mgmtStateProvider.Clear();