Fixing User database gestion

This commit is contained in:
Zoe Roux
2021-05-08 17:55:22 +02:00
parent 77231f4f41
commit 429af9b252
12 changed files with 80 additions and 46 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ namespace Kyoo.Postgresql
services.AddDbContext<DatabaseContext, PostgresContext>(x =>
{
x.UseNpgsql(_configuration.GetDatabaseConnection("postgres"));
if (_environment.IsDevelopment())
if (_configuration.GetValue<bool>("logging:dotnet-ef"))
x.EnableDetailedErrors().EnableSensitiveDataLogging();
});
// services.AddScoped<DatabaseContext>(_ => new PostgresContext(