forked from xiongyuxing/tiku-backend.net
perf: remove backoffice catalog query amplification
This commit is contained in:
@@ -49,6 +49,8 @@ using var host = builder.Build();
|
||||
await using var scope = host.Services.CreateAsyncScope();
|
||||
var dbContext = scope.ServiceProvider.GetRequiredService<TikuDbContext>();
|
||||
await dbContext.Database.MigrateAsync();
|
||||
var catalogSeeder = ActivatorUtilities.CreateInstance<BuiltinBackofficeCatalogSeeder>(scope.ServiceProvider);
|
||||
await catalogSeeder.SeedAsync();
|
||||
|
||||
if (bootstrapOptions is not null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user