Skip to content

Commit

Permalink
Make sure no emails are sent to jobs advisor
Browse files Browse the repository at this point in the history
  • Loading branch information
userman123 committed Apr 23, 2019
1 parent 679b1a5 commit 254a184
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,9 @@ def assign_advisor(advisor_id, current_advisor)
def update_advisor(advisor, current_advisor)
update_attribute(:advisor, advisor) # rubocop:disable Rails/SkipsModelValidations
return if current_advisor == advisor
AdvisorMailer.notify_assigned(self, current_advisor.name).deliver_now
unless advisor.hub.try(:id) == 5 # 'Ghost' Jobs Hub
AdvisorMailer.notify_assigned(self, current_advisor.name).deliver_now
end
end

def auto_assign_advisor(ward_mapit_code)
Expand Down

0 comments on commit 254a184

Please sign in to comment.