diff --git a/app/jobs/users/trial_webhook_job.rb b/app/jobs/users/trial_webhook_job.rb index 6e29b462..512dd075 100644 --- a/app/jobs/users/trial_webhook_job.rb +++ b/app/jobs/users/trial_webhook_job.rb @@ -10,6 +10,7 @@ class Users::TrialWebhookJob < ApplicationJob user_id: user.id, email: user.email, active_until: user.active_until, + status: user.status, action: 'create_user' } diff --git a/spec/jobs/users/trial_webhook_job_spec.rb b/spec/jobs/users/trial_webhook_job_spec.rb index 63a65956..94a9e581 100644 --- a/spec/jobs/users/trial_webhook_job_spec.rb +++ b/spec/jobs/users/trial_webhook_job_spec.rb @@ -18,6 +18,8 @@ RSpec.describe Users::TrialWebhookJob, type: :job do expected_payload = { user_id: user.id, email: user.email, + active_until: user.active_until, + status: user.status, action: 'create_user' }