Skip to content

Commit 7cdbaee

Browse files
authored
Update Async To MigrationsEndPointMiddleware (#22573)
1 parent ef0eff7 commit 7cdbaee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/Diagnostics.EntityFrameworkCore/src/MigrationsEndPointMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public virtual async Task Invoke(HttpContext context)
7676
{
7777
_logger.ApplyingMigrations(db.GetType().FullName);
7878

79-
db.Database.Migrate();
79+
await db.Database.MigrateAsync();
8080

8181
context.Response.StatusCode = (int)HttpStatusCode.NoContent;
8282
context.Response.Headers.Add("Pragma", new[] { "no-cache" });

0 commit comments

Comments
 (0)