Adds discord webhook support (#1886)

* --init

* cleanup

* removed extra spacing

* changed onchange handler name

* modified payload

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Syed Ali Shahbazandkodiakhq[bot] authored and GitHub committed 2022-02-18 17:49:39 +00:00
1 parent 75d19e0e7d
commit 4f89205dd4
3 files changed
+30 -3

No files matched your search

@@ -23,6 +23,7 @@ export const webhookRouter = createProtectedRouter()
subscriberUrl: z.string().url(),
eventTriggers: z.enum(WEBHOOK_TRIGGER_EVENTS).array(),
active: z.boolean(),
payloadTemplate: z.string().nullable(),
}),
async resolve({ ctx, input }) {
return await ctx.prisma.webhook.create({