Webhook requests should be concurrent

This commit is contained in:
Regalijan 2024-02-18 18:25:37 -05:00
parent c50cc97206
commit a275424316
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -57,7 +57,7 @@ export async function onRequestPost(context: RequestContext) {
const webhookPromises = [];
for (const departmentWebhook of departmentsToNotify)
webhookPromises.push(
await fetch(departmentWebhook, {
fetch(departmentWebhook, {
body: JSON.stringify({
embeds: [
{