fix: Data is not being sent webhook api on trigger (#1285) (#1316)

Co-authored-by: Rohan Gupta <rohan.gupta@zopper.com>
Co-authored-by: Shubham Palriwala <spalriwalau@gmail.com>
This commit is contained in:
Rohan Gupta
2023-10-21 10:57:38 +05:30
committed by GitHub
parent c979e0ed76
commit f37c6567fd

View File

@@ -60,6 +60,9 @@ export async function POST(request: Request) {
webhooks.map(async (webhook) => {
await fetch(webhook.url, {
method: "POST",
headers: {
"content-type": "application/json",
},
body: JSON.stringify({
webhookId: webhook.id,
event,