diff --git a/src/server/utils/webhook.ts b/src/server/utils/webhook.ts index 828385a9f..7fe2f1b6f 100644 --- a/src/server/utils/webhook.ts +++ b/src/server/utils/webhook.ts @@ -118,19 +118,21 @@ export const sendTxWebhook = async (queueIds: string[]): Promise => { } } - webhookConfig?.map(async (config) => { - if (!config || !config?.active) { - logger({ - service: "server", - level: "debug", - message: "No webhook set or active, skipping webhook send", - }); - - return; - } - - await sendWebhookRequest(config, txData); - }); + await Promise.all( + webhookConfig?.map(async (config) => { + if (!config || !config?.active) { + logger({ + service: "server", + level: "debug", + message: "No webhook set or active, skipping webhook send", + }); + + return; + } + + await sendWebhookRequest(config, txData); + }) || [], + ); } } } catch (error) {