Skip to content

Commit

Permalink
fix call to welcome_email
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfiredrill committed Aug 10, 2023
1 parent f12ee7d commit 2d5986e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user/roles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def add_role new_role
ActiveSupport::Notifications.instrument 'user.badge_award', username: self.username, badge: new_role
end
if new_role === "dj"
DjAccountMailer.welcome_email(self.username, '', self.radios.first).deliver_later
DjAccountMailer.welcome_email(self, '', self.radios.first).deliver_later
end
end
end
Expand Down

0 comments on commit 2d5986e

Please sign in to comment.