VRFS-2321 comment out session join email notification
This commit is contained in:
parent
69477c5a86
commit
d08475c34e
|
|
@ -581,13 +581,13 @@ module JamRuby
|
|||
@@mq_router.publish_to_user(ff.id, msg)
|
||||
|
||||
else
|
||||
if APP_CONFIG.send_join_session_email_notifications
|
||||
begin
|
||||
UserMailer.musician_session_join(ff, notification_msg, music_session.id).deliver
|
||||
rescue => e
|
||||
@@log.error("Unable to send MUSICIAN_SESSION_JOIN email to user #{ff.email} #{e}")
|
||||
end
|
||||
end
|
||||
# if APP_CONFIG.send_join_session_email_notifications
|
||||
# begin
|
||||
# UserMailer.musician_session_join(ff, notification_msg, music_session.id).deliver
|
||||
# rescue => e
|
||||
# @@log.error("Unable to send MUSICIAN_SESSION_JOIN email to user #{ff.email} #{e}")
|
||||
# end
|
||||
# end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ describe Notification do
|
|||
calls = count_publish_to_user_calls
|
||||
Notification.send_musician_session_join(@session, @sender)
|
||||
|
||||
UserMailer.deliveries.length.should == 1
|
||||
UserMailer.deliveries.length.should == 0
|
||||
calls[:count].should == 0
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue