diff --git a/app/workers/sync_members_on_stripe_worker.rb b/app/workers/sync_members_on_stripe_worker.rb index 1b811d479..27a387a24 100644 --- a/app/workers/sync_members_on_stripe_worker.rb +++ b/app/workers/sync_members_on_stripe_worker.rb @@ -21,7 +21,9 @@ class SyncMembersOnStripeWorker return unless notify_user_id logger.debug "Notify user #{notify_user_id}" + user = User.find(notify_user_id) NotificationCenter.call type: :notify_admin_members_stripe_sync, - receiver: User.find(notify_user_id) + receiver: user, + attached_object: user end end