Always disconnect + remove redundant success message (#1945)

This commit is contained in:
Alex van Andel 2022-02-22 19:04:55 +00:00 committed by GitHub
parent 97550a39f3
commit a704f1ed0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
});