Fixed issue where default webhook schema wasn't being used which caused an error
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@trigger.dev/sdk": patch
|
||||
---
|
||||
|
||||
Fixed issue where default webhook schema wasn't being used which caused an error
|
||||
@@ -94,6 +94,6 @@ export function webhookEvent<TSchema extends z.ZodTypeAny>(
|
||||
schema: zodToJsonSchema(schema) as WebhookEventTrigger["schema"],
|
||||
},
|
||||
// @ts-ignore
|
||||
schema: options.schema,
|
||||
schema,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user