2
0

feat(results): ️ Improve logs details

This commit is contained in:
Baptiste Arnaud
2022-04-19 14:10:22 -07:00
parent 9fbe1cc34c
commit 54a757b21b
17 changed files with 370 additions and 255 deletions

View File

@ -6,6 +6,7 @@ import {
SmtpCredentialsData,
Step,
Typebot,
Webhook,
} from 'models'
import { PrismaClient } from 'db'
import { readFileSync } from 'fs'
@ -36,12 +37,13 @@ export const createUser = () =>
},
})
export const createWebhook = (typebotId: string) =>
export const createWebhook = (typebotId: string, webhook?: Partial<Webhook>) =>
prisma.webhook.create({
data: {
id: 'webhook1',
typebotId: typebotId,
typebotId,
method: 'GET',
...webhook,
},
})