Use correct DBContext class

This commit is contained in:
Reimar 2025-03-19 14:33:11 +01:00
parent 9b2b65a152
commit d21a759ef4
Signed by: Reimar
GPG Key ID: 93549FA07F0AE268

View File

@ -22,7 +22,7 @@ class Program
public static async void RunMigrations(IWebHost app)
{
await using var scope = app.Services.CreateAsyncScope();
await using var db = scope.ServiceProvider.GetService<DbContext>();
await using var db = scope.ServiceProvider.GetService<DBContext>();
if (db != null) {
await db.Database.MigrateAsync();