From 393fa7293599642a4697a92472b668028e9fb0ae Mon Sep 17 00:00:00 2001 From: Hugues Tavernier Date: Thu, 14 Nov 2024 22:19:49 +0100 Subject: [PATCH] db seed, import prisma client from singleton --- prisma/seed.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/prisma/seed.ts b/prisma/seed.ts index 84cf6b2..683a877 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -1,10 +1,7 @@ import type { Interval } from '#app/modules/stripe/plans' -import { PrismaClient } from '@prisma/client' import { stripe } from '#app/modules/stripe/stripe.server' import { PRICING_PLANS } from '#app/modules/stripe/plans' - -const prisma = new PrismaClient() -prisma.$connect() +import { prisma } from '#app/utils/db.server.ts' async function seed() { /**