app/jobs/bobot/deliver_job.rb in bobot-2.6.2 vs app/jobs/bobot/deliver_job.rb in bobot-3.0.1

- old
+ new

@@ -1,12 +1,12 @@ module Bobot class DeliverJob < ApplicationJob queue_as :default - def perform(sender:, access_token:, payload_template:) + def perform(target_facebook_uid:, access_token:, payload_template:) Bobot::Commander.deliver( body: { - recipient: sender, + recipient: { id: target_facebook_uid }, }.merge(payload_template), query: { access_token: access_token, }, )