VRFS-1215 must call deliver to send emails
This commit is contained in:
parent
f318558c4b
commit
0a2da28ae4
|
|
@ -232,7 +232,7 @@ module JamRuby
|
|||
@@mq_router.publish_to_user(friend_id, msg)
|
||||
|
||||
else
|
||||
UserMailer.friend_request(friend.email, notification_msg)
|
||||
UserMailer.friend_request(friend.email, notification_msg).deliver
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -260,7 +260,7 @@ module JamRuby
|
|||
@@mq_router.publish_to_user(user.id, msg)
|
||||
|
||||
else
|
||||
UserMailer.friend_request_accepted(user.email, notification_msg)
|
||||
UserMailer.friend_request_accepted(user.email, notification_msg).deliver
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -287,7 +287,7 @@ module JamRuby
|
|||
@@mq_router.publish_to_user(user.id, msg)
|
||||
|
||||
else
|
||||
UserMailer.new_user_follower(user.email, notification_msg)
|
||||
UserMailer.new_user_follower(user.email, notification_msg).deliver
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -321,7 +321,7 @@ module JamRuby
|
|||
@@mq_router.publish_to_user(bm.user_id, msg)
|
||||
|
||||
else
|
||||
UserMailer.new_band_follower(bm.user.email, notification_msg)
|
||||
UserMailer.new_band_follower(bm.user.email, notification_msg).deliver
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -350,7 +350,7 @@ module JamRuby
|
|||
@@mq_router.publish_to_user(receiver.id, msg)
|
||||
|
||||
else
|
||||
UserMailer.session_invitation(receiver.email, notification_msg)
|
||||
UserMailer.session_invitation(receiver.email, notification_msg).deliver
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -499,7 +499,7 @@ module JamRuby
|
|||
|
||||
# send email notifications
|
||||
unless offline_ff.empty?
|
||||
UserMailer.musician_session_join(offline_ff.map! {|f| f.email}, notification_msg)
|
||||
UserMailer.musician_session_join(offline_ff.map! {|f| f.email}, notification_msg).deliver
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -540,7 +540,7 @@ module JamRuby
|
|||
|
||||
# send email notifications
|
||||
unless offline_followers.empty?
|
||||
UserMailer.band_session_join(offline_followers.map! {|f| f.email}, notification_msg)
|
||||
UserMailer.band_session_join(offline_followers.map! {|f| f.email}, notification_msg).deliver
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -585,7 +585,7 @@ module JamRuby
|
|||
|
||||
# send email notifications
|
||||
unless offline_ff.empty?
|
||||
UserMailer.musician_recording_saved(offline_ff.map! {|f| f.email}, notification_msg)
|
||||
UserMailer.musician_recording_saved(offline_ff.map! {|f| f.email}, notification_msg).deliver
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -620,7 +620,7 @@ module JamRuby
|
|||
|
||||
# send email notifications
|
||||
unless offline_followers.empty?
|
||||
UserMailer.band_recording_saved(offline_followers.map! {|f| f.email}, notification_msg)
|
||||
UserMailer.band_recording_saved(offline_followers.map! {|f| f.email}, notification_msg).deliver
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -704,7 +704,7 @@ module JamRuby
|
|||
@@mq_router.publish_to_user(receiver.id, msg)
|
||||
|
||||
else
|
||||
UserMailer.band_invitation(receiver.email, notification_msg)
|
||||
UserMailer.band_invitation(receiver.email, notification_msg).deliver
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -731,7 +731,7 @@ module JamRuby
|
|||
@@mq_router.publish_to_user(receiver.id, msg)
|
||||
|
||||
else
|
||||
UserMailer.band_invitation_accepted(receiver.email, notification_msg)
|
||||
UserMailer.band_invitation_accepted(receiver.email, notification_msg).deliver
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue