mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 00:52:50 +00:00
Update seed.ts
This commit is contained in:
@@ -555,7 +555,7 @@ async function seedFraudRules() {
|
||||
// Run a seed step in isolation: if it throws (FK conflict, duplicate row,
|
||||
// missing record, etc.) log the error and keep going so the rest of the seed —
|
||||
// and the API startup that follows it — are never blocked by one bad step.
|
||||
async function runStep(name: string, step: () => Promise<void>): Promise<boolean> {
|
||||
async function runStep(name: string, step: () => Promise<unknown>): Promise<boolean> {
|
||||
try {
|
||||
await step();
|
||||
return true;
|
||||
@@ -568,7 +568,7 @@ async function runStep(name: string, step: () => Promise<void>): Promise<boolean
|
||||
async function main() {
|
||||
console.log('🌱 Comprehensive EDR Seed Starting...\n');
|
||||
|
||||
const steps: Array<[string, () => Promise<void>]> = [
|
||||
const steps: Array<[string, () => Promise<unknown>]> = [
|
||||
['system users', seedSystemUsers],
|
||||
['stations', seedStations],
|
||||
['coach types & classes', seedCoachTypesAndClasses],
|
||||
|
||||
Reference in New Issue
Block a user