Worker build updates

This commit is contained in:
Darren Clarke 2024-06-28 07:49:39 +02:00
parent 45c80ca98a
commit 0cf1c3b8fd
64 changed files with 4216 additions and 3450 deletions

View file

@ -19,12 +19,13 @@ const notifyWebhooksTask = async (
for (const webhook of webhooks) {
const { endpointUrl, httpMethod, headers } = webhook;
const finalHeaders = { "Content-Type": "application/json", ...headers };
await fetch(endpointUrl, {
console.log({ endpointUrl, httpMethod, headers, finalHeaders });
const result = await fetch(endpointUrl, {
method: httpMethod,
headers: finalHeaders,
body: JSON.stringify(payload),
});
console.log(result);
}
};