From 74745745866395a557b4b0915d00d6078d011816 Mon Sep 17 00:00:00 2001 From: Kim Date: Thu, 16 Feb 2023 16:03:00 +0100 Subject: [PATCH] small changes to backend --- .../.idea.InnovEnergy/.idea/workspace.xml | 18 ++---------------- csharp/app/Backend/Database/Folder.cs | 2 +- csharp/app/Backend/Program.cs | 1 + 3 files changed, 4 insertions(+), 17 deletions(-) diff --git a/csharp/.idea/.idea.InnovEnergy/.idea/workspace.xml b/csharp/.idea/.idea.InnovEnergy/.idea/workspace.xml index b206c2a1e..59a6bd462 100644 --- a/csharp/.idea/.idea.InnovEnergy/.idea/workspace.xml +++ b/csharp/.idea/.idea.InnovEnergy/.idea/workspace.xml @@ -16,23 +16,9 @@ - - - - - - - - - - - - - - - + diff --git a/csharp/app/Backend/Database/Folder.cs b/csharp/app/Backend/Database/Folder.cs index e14404fe2..14057f4ce 100644 --- a/csharp/app/Backend/Database/Folder.cs +++ b/csharp/app/Backend/Database/Folder.cs @@ -68,7 +68,7 @@ public partial class Db .Where(f => f.FolderId == folder.Id) .Delete(); - // TODO: delete descendants? Here they are just reassiged one level up + // TODO: delete descendants? Here they are just adopted one level up foreach (var l in Installations .Where(i => i.ParentId == folder.Id)) { diff --git a/csharp/app/Backend/Program.cs b/csharp/app/Backend/Program.cs index 8d5ea600c..eab83bb4f 100644 --- a/csharp/app/Backend/Program.cs +++ b/csharp/app/Backend/Program.cs @@ -15,6 +15,7 @@ var builder = WebApplication.CreateBuilder(args); builder.Services.AddControllers(); // TODO: remove magic, specify controllers explicitly // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle + builder.Services.AddHttpContextAccessor(); builder.Services.AddEndpointsApiExplorer(); builder.Services.AddCors(o => o.AddDefaultPolicy(p => p.WithOrigins("*"))); // TODO