This commit is contained in:
Marshal
2026-06-18 06:58:01 +00:00
parent 1d9e0f2108
commit 16bb0b5246
2 changed files with 10 additions and 7 deletions

View File

@@ -144,11 +144,12 @@ export class AppModule implements OnApplicationBootstrap {
await this.edrOrgSeeder.run();
await this.demoUsersSeeder.run();
await this.freightStaffUsersSeeder.run();
await this.demoBookingsSeeder.run();
await this.pricingDataSeeder.run();
await this.fileUploadSettingsSeeder.run();
// Idempotent demo data: ≥100 wagons/type, approval chains, 4 staff users.
// Each block self-guards on an empty-table check, so this is safe every boot.
// Demo data seeds disabled — keep only user/permission/role seeds.
// await this.demoBookingsSeeder.run();
// await this.pricingDataSeeder.run();
// await this.fileUploadSettingsSeeder.run();
// demoFreightDataSeeder now seeds ONLY the 4 staff users (wagons + approval
// rules are disabled inside the seeder). Kept running for the staff users.
await this.demoFreightDataSeeder.run();
}
}