From 2d0e201cb7a7eeb3aaeb0aa9c2f8a20c75a68016 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 10 Jun 2020 16:45:48 +0200 Subject: [PATCH] fix send notification after members sync --- app/workers/sync_members_on_stripe_worker.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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