Skip to content

Commit

Permalink
Merge branch 'develop' into convert-to-https
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleypayton committed Mar 20, 2024
2 parents 65714ba + ff6395e commit 324dd3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/FocusAPI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
var app = builder.Build();

// Instantiate the DbContext so that the database is created if it doesn't exist
_ = app.Services.GetService<FocusContext>();
_ = app.Services
.CreateScope()
.ServiceProvider
.GetService<FocusContext>();

// Configure the HTTP request pipeline.
if (!app.Environment.IsProduction())
Expand Down

0 comments on commit 324dd3c

Please sign in to comment.