diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/SeedExtensions.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/SeedExtensions.cs index 0f5c5eb0c..2749e736a 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/SeedExtensions.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/SeedExtensions.cs @@ -16,9 +16,11 @@ public static async Task MigrateAsync(this IHost host) using var scope = host.Services.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); await db.Database.MigrateAsync(); - await using var conn = (NpgsqlConnection)db.Database.GetDbConnection(); - await conn.OpenAsync(); - conn.ReloadTypes(); + + // TODO: sometimes throws System.ObjectDisposedException, but sometimes needed for https://www.npgsql.org/efcore/mapping/enum.html#creating-your-database-enum + //await using var conn = (NpgsqlConnection)db.Database.GetDbConnection(); + //await conn.OpenAsync(); + //conn.ReloadTypes(); } }