From ff0129aba2cf3918632f64786cac95c9fbcddbe9 Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 17:13:17 +0200 Subject: [PATCH] Bdd11 SQLite --- WF_EF_Api/StubbedContextLib/StubWTFContext.cs | 2 +- WF_EF_Api/WfApi/Controllers/UsersController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WF_EF_Api/StubbedContextLib/StubWTFContext.cs b/WF_EF_Api/StubbedContextLib/StubWTFContext.cs index 10461ea..e1dea2f 100644 --- a/WF_EF_Api/StubbedContextLib/StubWTFContext.cs +++ b/WF_EF_Api/StubbedContextLib/StubWTFContext.cs @@ -144,7 +144,7 @@ namespace StubbedContextLib if (!options.IsConfigured) { options.UseSqlite( - $"Data Source={Environment.GetEnvironmentVariable("DB_PATH_AUTH")};"); + $"Data Source={Environment.GetEnvironmentVariable("DB_SERVER_AUTH")};"); //options.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=Wf-Database.mdf;Trusted_Connection=True;"); diff --git a/WF_EF_Api/WfApi/Controllers/UsersController.cs b/WF_EF_Api/WfApi/Controllers/UsersController.cs index be13e1f..519248b 100644 --- a/WF_EF_Api/WfApi/Controllers/UsersController.cs +++ b/WF_EF_Api/WfApi/Controllers/UsersController.cs @@ -66,7 +66,7 @@ namespace WfApi.Controllers } catch (Exception e) { - return StatusCode((int)HttpStatusCode.InternalServerError, new { message = "Internal Server Error" +e.Message + " --- " + Environment.GetEnvironmentVariable("DB_PATH_AUTH")}); + return StatusCode((int)HttpStatusCode.InternalServerError, new { message = "Internal Server Error" +e.Message + " --- " + Environment.GetEnvironmentVariable("DB_SERVER_AUTH") }); } }