Use MigrateAsync instead of Migrate.

This commit is contained in:
Jared Goodwin 2023-07-31 14:26:07 -07:00
parent bf094a637b
commit 0a8c74da8b

View File

@ -285,7 +285,7 @@ using (var scope = app.Services.CreateScope())
if (context.Database.IsRelational())
{
context.Database.Migrate();
await context.Database.MigrateAsync();
}
await dataService.SetAllDevicesNotOnline();