fix: resolve typecheck errors in seed scripts
Add non-null assertions for array indexing in prisma/seed.ts and scripts/seed-districts.ts to satisfy strict TypeScript checks. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -253,8 +253,8 @@ async function seedProperties(users: Awaited<ReturnType<typeof seedUsers>>) {
|
||||
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" (
|
||||
|
||||
Reference in New Issue
Block a user