From a275424316df78ae1ca9a2e2232d647302ae4112 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Sun, 18 Feb 2024 18:25:37 -0500 Subject: [PATCH] Webhook requests should be concurrent --- functions/api/inactivity/new.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/inactivity/new.ts b/functions/api/inactivity/new.ts index 199ea8e..3ab1f3d 100644 --- a/functions/api/inactivity/new.ts +++ b/functions/api/inactivity/new.ts @@ -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: [ {