refactor: disable demo data seeders while retaining for easy re-enabling

This commit is contained in:
Marshal
2026-06-18 07:27:57 +00:00
parent 16bb0b5246
commit 62038458f8
2 changed files with 9 additions and 10 deletions

View File

@@ -43,9 +43,12 @@ export class DemoFreightDataSeeder {
async run() {
await this.dataSource.transaction(async (manager) => {
// Demo freight data (wagons + approval rules) disabled — keep only the
// 4 staff users.
// await this.seedWagons(manager);
// await this.seedApprovalRules(manager);
// 4 staff users. The seeders are retained for easy re-enabling; flip
// SEED_DEMO_FREIGHT_DATA=true to run them.
if (process.env.SEED_DEMO_FREIGHT_DATA === 'true') {
await this.seedWagons(manager);
await this.seedApprovalRules(manager);
}
await this.seedStaffUsers(manager);
});
}