|
|
@ -205,7 +205,7 @@ export class WebhookService { |
|
|
webhookSubscription.lastDeliverySuccessAt = now |
|
|
webhookSubscription.lastDeliverySuccessAt = now |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
console.error( |
|
|
console.error( |
|
|
`Failed to deliver webhook notification ${webhookNotification._id}: received response status code ${e.response.status}`, |
|
|
|
|
|
|
|
|
`Failed to deliver webhook notification ${webhookNotification._id}: received response status code ${e.response?.status} with message ${e.message}`, |
|
|
) |
|
|
) |
|
|
webhookNotification.deliveryAttemptCount += 1 |
|
|
webhookNotification.deliveryAttemptCount += 1 |
|
|
webhookNotification.lastDeliveryAttemptAt = now |
|
|
webhookNotification.lastDeliveryAttemptAt = now |
|
|
|