Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions e2e/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import { PrismaClient, type AccountType } from '@/generated/prisma/client';
import { PrismaPg } from '@prisma/adapter-pg';
import pg from 'pg';
import { randomUUID } from 'crypto';
import { config } from 'dotenv';

Expand All @@ -40,8 +39,7 @@ async function seed() {
process.exit(1);
}

const pool = new pg.Pool({ connectionString: dbUrl });
const adapter = new PrismaPg(pool);
const adapter = new PrismaPg({ connectionString: dbUrl });
const prisma = new PrismaClient({ adapter });

try {
Expand Down Expand Up @@ -338,7 +336,6 @@ async function seed() {
console.log(` Use E2E_ORG_SLUG=${E2E_ORG_SLUG} in your E2E tests`);
} finally {
await prisma.$disconnect();
await pool.end();
}
}

Expand Down
Loading
Loading