Always disconnect + remove redundant success message (#1945)

pull/1926/head
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
1 changed files with 3 additions and 5 deletions

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