mirror of
https://github.com/LukeHagar/baton.git
synced 2025-12-06 04:19:20 +00:00
deleting un-needed script
This commit is contained in:
25
script.ts
25
script.ts
@@ -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)
|
||||
})
|
||||
Reference in New Issue
Block a user