This commit is contained in:
2026-07-24 20:37:42 +08:00 Unverified
parent 5da1a8a403
commit 20ca205080
9 changed files with 1115 additions and 7 deletions
+6
View File
@@ -87,6 +87,7 @@ builder.Services.AddScoped<ITokenService, TokenService>();
builder.Services.AddScoped<ICurrentUserDataScope, CurrentUserDataScope>();
builder.Services.AddScoped<DatabaseInitializer>();
builder.Services.AddScoped<DevelopmentSqliteMigrator>();
builder.Services.AddScoped<DevelopmentDemoDataSeeder>();
builder.Services.AddScoped<AutomaticScheduleGenerator>();
builder.Services
@@ -248,6 +249,11 @@ using (var scope = app.Services.CreateScope())
.InitializeAsync();
}
if (args.Contains("--seed-only", StringComparer.OrdinalIgnoreCase))
{
return;
}
app.Run();
public partial class Program;