diff --git a/src/apps/Altinn.Authorization.DeployApi/src/Altinn.Authorization.DeployApi/Pipelines/PipelineContext.cs b/src/apps/Altinn.Authorization.DeployApi/src/Altinn.Authorization.DeployApi/Pipelines/PipelineContext.cs index ca0b3305..a6867be8 100644 --- a/src/apps/Altinn.Authorization.DeployApi/src/Altinn.Authorization.DeployApi/Pipelines/PipelineContext.cs +++ b/src/apps/Altinn.Authorization.DeployApi/src/Altinn.Authorization.DeployApi/Pipelines/PipelineContext.cs @@ -28,7 +28,7 @@ internal static async Task Run(TaskPipeline pipeline, HttpContext context) ////await using var textWriter = new StreamWriter(responseBody.Stream, Encoding.UTF8); await Run(pipeline, responseBody.Writer, context.RequestServices, ct); - + await responseBody.CompleteAsync(); } @@ -72,10 +72,9 @@ internal static async Task Run(TaskPipeline pipeline, WebSoc reader.AdvanceTo(buffer.End); } while (!result.IsCompleted); - }, + }, ct); - AggregateException? ex = null; try { return await Run(pipeline, writer, services, ct); diff --git a/src/apps/Altinn.Authorization.DeployApi/src/Altinn.Authorization.DeployApi/Program.cs b/src/apps/Altinn.Authorization.DeployApi/src/Altinn.Authorization.DeployApi/Program.cs index 6165045b..e23e546f 100644 --- a/src/apps/Altinn.Authorization.DeployApi/src/Altinn.Authorization.DeployApi/Program.cs +++ b/src/apps/Altinn.Authorization.DeployApi/src/Altinn.Authorization.DeployApi/Program.cs @@ -34,6 +34,6 @@ app.UseWebSockets(); -app.MapTaskPipeline("/api/v1/database/bootstrap"); +app.MapTaskPipeline("/deployapi/api/v1/database/bootstrap"); app.Run();