🗃️ Remove list types from db schema
This commit is contained in:
@ -30,7 +30,14 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
await prisma.webhook.upsert({
|
||||
where: { id: webhookId },
|
||||
update: { url, body: '{{state}}', method: 'POST' },
|
||||
create: { url, body: '{{state}}', method: 'POST', typebotId },
|
||||
create: {
|
||||
url,
|
||||
body: '{{state}}',
|
||||
method: 'POST',
|
||||
typebotId,
|
||||
headers: [],
|
||||
queryParams: [],
|
||||
},
|
||||
})
|
||||
|
||||
return res.send({ message: 'success' })
|
||||
|
@ -29,7 +29,14 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
await prisma.webhook.upsert({
|
||||
where: { id: webhookId },
|
||||
update: { url, body: '{{state}}', method: 'POST' },
|
||||
create: { url, body: '{{state}}', method: 'POST', typebotId },
|
||||
create: {
|
||||
url,
|
||||
body: '{{state}}',
|
||||
method: 'POST',
|
||||
typebotId,
|
||||
headers: [],
|
||||
queryParams: [],
|
||||
},
|
||||
})
|
||||
|
||||
return res.send({ message: 'success' })
|
||||
|
@ -32,6 +32,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
data: {
|
||||
typebotId,
|
||||
isCompleted: false,
|
||||
variables: [],
|
||||
},
|
||||
})
|
||||
res.send({ result })
|
||||
|
Reference in New Issue
Block a user