Skip to content

Commit 61d66b5

Browse files
committed
fix: use correct Prisma import path in seed script
1 parent 9c9f33c commit 61d66b5

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

scripts/seed-demo-assessments.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
* Usage: npx tsx scripts/seed-demo-assessments.ts <elderlyProfileId>
55
*/
66

7-
import { PrismaClient } from "@prisma/client";
7+
import { Pool } from "pg";
8+
import { PrismaPg } from "@prisma/adapter-pg";
9+
import { PrismaClient } from "../src/generated/prisma";
810

9-
const prisma = new PrismaClient();
11+
const pool = new Pool({ connectionString: process.env.DATABASE_URL });
12+
const adapter = new PrismaPg(pool);
13+
const prisma = new PrismaClient({ adapter });
1014

1115
function randomBetween(min: number, max: number) {
1216
return Math.round((Math.random() * (max - min) + min) * 100) / 100;

0 commit comments

Comments
 (0)