fix: await on prisma.image.createMany

This commit is contained in:
diced 2022-10-23 10:09:48 -07:00
parent 2bd5352fc5
commit 1f44aa7e85
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1

View file

@ -39,7 +39,7 @@ async function main() {
const prisma = new PrismaClient();
console.log('Starting transaction to database..');
prisma.image.createMany({
await prisma.image.createMany({
data,
});
console.log('Finished transaction to database.');