Retrait des points-virgules finaux

This commit is contained in:
2024-12-07 10:24:41 +01:00
parent ab180a12ce
commit 2ad2063339
20 changed files with 101 additions and 103 deletions

View File

@ -1,26 +1,26 @@
import { PrismaClient } from '@prisma/client';
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient();
const prisma = new PrismaClient()
async function main() {
const emmy = await prisma.user.upsert({
where: { id: 1 },
update: { name: 'Emmy' },
create: { name: 'Emmy' },
});
})
const tamina = await prisma.user.upsert({
where: { id: 2 },
update: { name: 'Tamina' },
create: { name: 'Tamina' },
});
console.log({ emmy, tamina });
})
console.log({ emmy, tamina })
}
main()
.catch((e) => {
console.error(e);
process.exit(1);
console.error(e)
process.exit(1)
})
.finally(async () => {
await prisma.$disconnect();
});
await prisma.$disconnect()
})