Skip to content

Commit

Permalink
Adjust other occurrence of method
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Dec 1, 2024
1 parent 102dd19 commit e0e066c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/user_cleaner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ def send_additional_warning_mails
num_days_until_deletion = (user.deletion_date - Date.current).to_i

if [14, 7, 2].include?(num_days_until_deletion)
UserCleanerMailer.with(user: user)
.pending_deletion_email(num_days_until_deletion)
.deliver_later
UserCleanerMailer
.pending_deletion_email(user.email, user.locale, num_days_until_deletion)
.deliver_later
end
end
end
Expand Down

0 comments on commit e0e066c

Please sign in to comment.