1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

fix send notification after members sync

This commit is contained in:
Sylvain 2020-06-10 16:45:48 +02:00
parent 78518e17fb
commit 2d0e201cb7

View File

@ -21,7 +21,9 @@ class SyncMembersOnStripeWorker
return unless notify_user_id return unless notify_user_id
logger.debug "Notify user #{notify_user_id}" logger.debug "Notify user #{notify_user_id}"
user = User.find(notify_user_id)
NotificationCenter.call type: :notify_admin_members_stripe_sync, NotificationCenter.call type: :notify_admin_members_stripe_sync,
receiver: User.find(notify_user_id) receiver: user,
attached_object: user
end end
end end