File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -118,19 +118,21 @@ export const sendTxWebhook = async (queueIds: string[]): Promise<void> => {
118
118
}
119
119
}
120
120
121
- webhookConfig ?. map ( async ( config ) => {
122
- if ( ! config || ! config ?. active ) {
123
- logger ( {
124
- service : "server" ,
125
- level : "debug" ,
126
- message : "No webhook set or active, skipping webhook send" ,
127
- } ) ;
128
-
129
- return ;
130
- }
131
-
132
- await sendWebhookRequest ( config , txData ) ;
133
- } ) ;
121
+ await Promise . all (
122
+ webhookConfig ?. map ( async ( config ) => {
123
+ if ( ! config || ! config ?. active ) {
124
+ logger ( {
125
+ service : "server" ,
126
+ level : "debug" ,
127
+ message : "No webhook set or active, skipping webhook send" ,
128
+ } ) ;
129
+
130
+ return ;
131
+ }
132
+
133
+ await sendWebhookRequest ( config , txData ) ;
134
+ } ) || [ ] ,
135
+ ) ;
134
136
}
135
137
}
136
138
} catch ( error ) {
You can’t perform that action at this time.
0 commit comments