From df75c68bf6687fb76141e7a32bddbadf189bdcc7 Mon Sep 17 00:00:00 2001 From: Stephanos A Date: Tue, 9 Jun 2026 20:32:24 +0300 Subject: [PATCH] seed fix: update last station code and correct route reference in seedTrips and seedFareRules functions --- 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 99db0202b..2d1cca828 100644 --- a/apps/edr-passenger-api/prisma/seed.ts +++ b/apps/edr-passenger-api/prisma/seed.ts @@ -266,7 +266,7 @@ async function seedTrips() { const route = await prisma.route.findUnique({ where: { code: 'EDR-101' } }); const firstStation = await prisma.station.findUnique({ where: { code: 'SBT' } }); - const lastStation = await prisma.station.findUnique({ where: { code: 'DIR' } }); + const lastStation = await prisma.station.findUnique({ where: { code: 'DRE' } }); const coaches = await prisma.coach.findMany(); const now = new Date(); @@ -324,7 +324,7 @@ async function seedTrips() { async function seedFareRules() { console.log('\n💰 Seeding fare rules...'); - const route = await prisma.route.findUnique({ where: { code: 'EDR-MAIN' } }); + const route = await prisma.route.findUnique({ where: { code: 'EDR-101' } }); const seatClasses = await prisma.seatClass.findMany(); const validFrom = new Date('2024-01-01');