Fix Interval
This commit is contained in:
parent
7f7817bb64
commit
25e4b01c84
@ -1,5 +1,6 @@
|
||||
using System.Reflection;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
using Microsoft.OpenApi;
|
||||
using SQLiteEF;
|
||||
|
||||
@ -49,7 +50,8 @@ public class Api
|
||||
app.UseAuthorization();
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
|
||||
_tracker = app.Services.GetRequiredService<Tracker>();
|
||||
app.Services.CreateScope().ServiceProvider.GetRequiredService<Context>().Database.Migrate();
|
||||
|
||||
app.Run();
|
||||
|
Loading…
x
Reference in New Issue
Block a user