diff --git a/packages/prisma/seed.ts b/packages/prisma/seed.ts index 80d008a480..3a22a3eb99 100644 --- a/packages/prisma/seed.ts +++ b/packages/prisma/seed.ts @@ -343,15 +343,13 @@ async function main() { }, ] ); - - await prisma.$disconnect(); } main() - .then(() => { - console.log("🌱 Seeded db"); - }) .catch((e) => { console.error(e); process.exit(1); + }) + .finally(async () => { + await prisma.$disconnect(); });