Startup fix: Apply migrations before starting tracker
This commit is contained in:
parent
25e4b01c84
commit
89a0dc1bc2
@ -51,8 +51,8 @@ public class Api
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
_tracker = app.Services.GetRequiredService<Tracker>();
|
||||
app.Services.CreateScope().ServiceProvider.GetRequiredService<Context>().Database.Migrate();
|
||||
_tracker = app.Services.GetRequiredService<Tracker>();
|
||||
|
||||
app.Run();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user