lib/webhook_system/job.rb in webhook_system-2.3.1 vs lib/webhook_system/job.rb in webhook_system-2.4.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module WebhookSystem
# This is the ActiveJob in charge of actually sending each event
class Job < ActiveJob::Base
@@ -88,10 +90,10 @@
req.body = payload.to_s
end
end
def self.format_for_subscription(subscription)
- subscription.encrypt ? 'base64+aes256' : 'json'
+ subscription.encrypted ? 'base64+aes256' : 'json'
end
def self.log_response(subscription, event, request, response)
event_log = EventLog.construct(subscription, event, request, response)