Always disconnect + remove redundant success message (#1945)
parent
97550a39f3
commit
a704f1ed0a
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue