Fix Interval

This commit is contained in:
glax 2025-05-26 04:54:08 +02:00
parent 7f7817bb64
commit 25e4b01c84

View File

@ -1,5 +1,6 @@
using System.Reflection; using System.Reflection;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.OpenApi; using Microsoft.OpenApi;
using SQLiteEF; using SQLiteEF;
@ -50,6 +51,7 @@ public class Api
app.MapControllers(); app.MapControllers();
_tracker = app.Services.GetRequiredService<Tracker>();
app.Services.CreateScope().ServiceProvider.GetRequiredService<Context>().Database.Migrate(); app.Services.CreateScope().ServiceProvider.GetRequiredService<Context>().Database.Migrate();
app.Run(); app.Run();