diff --git a/prisma/seed.ts b/prisma/seed.ts index 570eb2e..512904e 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -253,8 +253,8 @@ async function seedProperties(users: Awaited>) { const agents = await prisma.agent.findMany(); for (let i = 0; i < sampleProperties.length; i++) { - const p = sampleProperties[i]; - const agent = agents[i % agents.length]; + const p = sampleProperties[i]!; + const agent = agents[i % agents.length]! const property = await prisma.$executeRaw` INSERT INTO "Property" ( diff --git a/scripts/seed-districts.ts b/scripts/seed-districts.ts index 8166014..84aed3a 100644 --- a/scripts/seed-districts.ts +++ b/scripts/seed-districts.ts @@ -257,7 +257,7 @@ async function seedDistrictProperties() { for (const { district, wards } of districts) { const ward = wards[0]; - const template = PROPERTY_TEMPLATES[created % PROPERTY_TEMPLATES.length]; + const template = PROPERTY_TEMPLATES[created % PROPERTY_TEMPLATES.length]!; const loc = coords[district] ?? { lat: 10.0, lng: 106.0 }; // Small random offset so each property has unique coords const jitterLat = (Math.random() - 0.5) * 0.005;