mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 22:25:42 +00:00
refactor: disable demo data seeders while retaining for easy re-enabling
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user