diff --git a/script.ts b/script.ts deleted file mode 100644 index f38b607..0000000 --- a/script.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { PrismaClient } from '@prisma/client' - -const prisma = new PrismaClient() - -async function main() { - const user = await prisma.webhook.create({ - data: { - headers: '{"Content-Type":"application/json"}', - method: 'POST', - path: '/', - body: '{"message":"Hello, world!"}' - } - }) - console.log(user) -} - -main() - .then(async () => { - await prisma.$disconnect() - }) - .catch(async (e) => { - console.error(e) - await prisma.$disconnect() - process.exit(1) - }) \ No newline at end of file