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 = [];
|
const webhookPromises = [];
|
||||||
for (const departmentWebhook of departmentsToNotify)
|
for (const departmentWebhook of departmentsToNotify)
|
||||||
webhookPromises.push(
|
webhookPromises.push(
|
||||||
await fetch(departmentWebhook, {
|
fetch(departmentWebhook, {
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user