Fixed issue where default webhook schema wasn't being used which caused an error

This commit is contained in:
Eric Allam
2023-02-27 16:53:55 +00:00
parent 6a1823b242
commit b57241951b
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@trigger.dev/sdk": patch
---
Fixed issue where default webhook schema wasn't being used which caused an error
+1 -1
View File
@@ -94,6 +94,6 @@ export function webhookEvent<TSchema extends z.ZodTypeAny>(
schema: zodToJsonSchema(schema) as WebhookEventTrigger["schema"],
},
// @ts-ignore
schema: options.schema,
schema,
};
}