feat: adds automatic generation of uuid id for webhooks create on API

This commit is contained in:
Agusti Fernandez Pardo committed 2022-06-01 17:05:33 +02:00
1 parent 7f42cc8479
commit 43b94d3e96
5 files changed
+7 -6

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ const schemaWebhookBaseBodyParams = Webhook.pick({
export const schemaWebhookCreateParams = z
.object({
id: z.string(),
// id: z.string(),
subscriberUrl: z.string().url(),
eventTriggers: z.enum(WEBHOOK_TRIGGER_EVENTS).array(),
active: z.boolean(),