From fbe3d2fd101946fc44300c422da7fd8a55fe7fe3 Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com> Date: Thu, 26 May 2022 12:03:14 +0530 Subject: [PATCH] more debug --- lib/validations/webhook.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/validations/webhook.ts b/lib/validations/webhook.ts index b228f47e42..48665c61d1 100644 --- a/lib/validations/webhook.ts +++ b/lib/validations/webhook.ts @@ -21,9 +21,9 @@ const schemaWebhookBaseBodyParams = Webhook.pick({ export const schemaWebhookCreateParams = z .object({ subscriberUrl: z.string().url(), - eventTriggers: z.any(), + eventTriggers: z.string().array(), active: z.boolean(), - payloadTemplate: z.string().nullable(), + payloadTemplate: z.string().optional().nullable(), eventTypeId: z.number().optional(), appId: z.string().optional().nullable(), })