Skip to content

Commit

Permalink
Use async methods in MiddlewareConfig.cs
Browse files Browse the repository at this point in the history
Modified : src/Clean.Architecture.Web/Configurations/MiddlewareConfig.cs
  • Loading branch information
samanazadi1996 committed Jan 28, 2025
1 parent 9b93751 commit 94db2a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Clean.Architecture.Web/Configurations/MiddlewareConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ static async Task SeedDatabase(WebApplication app)
try
{
var context = services.GetRequiredService<AppDbContext>();
// context.Database.Migrate();
context.Database.EnsureCreated();
// await context.Database.MigrateAsync();
await context.Database.EnsureCreatedAsync();
await SeedData.InitializeAsync(context);
}
catch (Exception ex)
Expand Down

0 comments on commit 94db2a0

Please sign in to comment.