mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 10:52:53 +00:00
fix
This commit is contained in:
@@ -5,8 +5,7 @@ import { EdrTruckFleetSeeder } from '../seed/edr-truck-fleet.seeder';
|
||||
* Seeds the 62-truck EDR fleet used by first-mile / last-mile.
|
||||
*
|
||||
* The seeder is idempotent (`ON CONFLICT (plate_number) DO NOTHING`), so a
|
||||
* re-run will NOT overwrite a truck whose rate was corrected by hand — the
|
||||
* seeded rate is a placeholder and is meant to be replaced.
|
||||
* re-run will NOT overwrite a truck whose rate was tuned by hand.
|
||||
*/
|
||||
async function seedEdrTrucks() {
|
||||
await AppDataSource.initialize();
|
||||
@@ -28,9 +27,7 @@ async function seedEdrTrucks() {
|
||||
`);
|
||||
|
||||
console.table(summary);
|
||||
console.log(
|
||||
'Seeded EDR truck fleet. NOTE: price_per_km is DEMO DATA — replace with the real tariff before billing.',
|
||||
);
|
||||
console.log('Seeded EDR truck fleet.');
|
||||
} finally {
|
||||
await AppDataSource.destroy();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user