fix: await on prisma.image.createMany
This commit is contained in:
parent
2bd5352fc5
commit
1f44aa7e85
1 changed files with 1 additions and 1 deletions
|
@ -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.');
|
||||
|
|
Loading…
Reference in a new issue