From 89a0dc1bc2520a704678ee861dc7e8fe6d99f38b Mon Sep 17 00:00:00 2001 From: glax Date: Mon, 26 May 2025 16:41:40 +0200 Subject: [PATCH] Startup fix: Apply migrations before starting tracker --- API/Api.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API/Api.cs b/API/Api.cs index 7e651be..a4a4da8 100644 --- a/API/Api.cs +++ b/API/Api.cs @@ -51,8 +51,8 @@ public class Api app.MapControllers(); - _tracker = app.Services.GetRequiredService(); app.Services.CreateScope().ServiceProvider.GetRequiredService().Database.Migrate(); + _tracker = app.Services.GetRequiredService(); app.Run(); }