Skip to content

Commit bc864c1

Browse files
authored
✨ Rename variable for clarity in database initialization (#540)
1 parent cd8e468 commit bc864c1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tools/MigrationService/Worker.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
2121
using var scope = serviceProvider.CreateScope();
2222
var environment = scope.ServiceProvider.GetRequiredService<IHostEnvironment>();
2323

24-
var warehouseInitializer = scope.ServiceProvider.GetRequiredService<ApplicationDbContextInitializer>();
25-
await warehouseInitializer.EnsureDatabaseAsync(stoppingToken);
26-
await warehouseInitializer.CreateSchemaAsync(true, stoppingToken);
24+
var initializer = scope.ServiceProvider.GetRequiredService<ApplicationDbContextInitializer>();
25+
await initializer.EnsureDatabaseAsync(stoppingToken);
26+
await initializer.CreateSchemaAsync(true, stoppingToken);
2727

2828
if (environment.IsDevelopment())
2929
{
30-
await warehouseInitializer.SeedDataAsync(stoppingToken);
30+
await initializer.SeedDataAsync(stoppingToken);
3131
}
3232

3333
sw.Stop();

0 commit comments

Comments
 (0)