Webhook requests should be concurrent
This commit is contained in:
parent
c50cc97206
commit
a275424316
@ -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: [
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user