مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
18 أسطر
361 B
Ruby
18 أسطر
361 B
Ruby
# frozen_string_literal: true
|
|
|
|
class WebhookDeliveryJob < Postal::Job
|
|
|
|
def perform
|
|
if webhook_request = WebhookRequest.find_by_id(params["id"])
|
|
if webhook_request.deliver
|
|
log "Succesfully delivered"
|
|
else
|
|
log "Delivery failed"
|
|
end
|
|
else
|
|
log "No webhook request found with ID '#{params['id']}'"
|
|
end
|
|
end
|
|
|
|
end
|