From 556c2dc1f858f8afe482f124487d010e94067b62 Mon Sep 17 00:00:00 2001 From: Abubeker Yasin Date: Thu, 11 Jun 2026 14:24:56 +0300 Subject: [PATCH] Update seed.ts --- apps/edr-passenger-api/prisma/seed.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/edr-passenger-api/prisma/seed.ts b/apps/edr-passenger-api/prisma/seed.ts index 8e1bedd83..17283e15b 100644 --- a/apps/edr-passenger-api/prisma/seed.ts +++ b/apps/edr-passenger-api/prisma/seed.ts @@ -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): Promise { +async function runStep(name: string, step: () => Promise): Promise { try { await step(); return true; @@ -568,7 +568,7 @@ async function runStep(name: string, step: () => Promise): Promise Promise]> = [ + const steps: Array<[string, () => Promise]> = [ ['system users', seedSystemUsers], ['stations', seedStations], ['coach types & classes', seedCoachTypesAndClasses],