refresh webhook status

This commit is contained in:
Pete Matsyburka
2025-07-05 10:27:35 +03:00
parent 988a5361a6
commit 4615e3e48f
10 changed files with 139 additions and 90 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ module SendWebhookRequest
attempt:
)
webhook_event.update!(status: response.success? ? 'success' : 'error')
webhook_event.update!(status: response.status.to_i >= 400 ? 'error' : 'success')
response
rescue StandardError