diff --git a/API_SQLuedo/API/Program.cs b/API_SQLuedo/API/Program.cs index a12b0d1..b4a4679 100644 --- a/API_SQLuedo/API/Program.cs +++ b/API_SQLuedo/API/Program.cs @@ -41,9 +41,12 @@ builder.Services.AddDbContext(options => { if (builder.Environment.IsProduction()) { - throw new Exception("I am in production mode"); + Console.WriteLine("I am in production mode"); + } + else + { + Console.WriteLine("I am in development mode"); } - throw new Exception("I am in development mode"); }); builder.Services.AddDbContext(options => options.UseInMemoryDatabase("appDb")); builder.Services.AddIdentityApiEndpoints().AddEntityFrameworkStores();