mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix(dir): 🐛🚑 ObjectDisposedException on startup migration
This commit is contained in:
parent
6d26e60a9f
commit
f4a4c58ea2
1 changed files with 2 additions and 2 deletions
|
|
@ -9,11 +9,11 @@ namespace FilterLists.Directory.Infrastructure.Persistence;
|
|||
|
||||
public static class SeedExtension
|
||||
{
|
||||
public static Task MigrateAsync(this IHost host)
|
||||
public static async Task MigrateAsync(this IHost host)
|
||||
{
|
||||
using var scope = host.Services.CreateScope();
|
||||
var db = scope.ServiceProvider.GetRequiredService<QueryDbContext>();
|
||||
return db.Database.MigrateAsync();
|
||||
await db.Database.MigrateAsync();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue