Skip to content

Commit

Permalink
Change email from address to [email protected], schedule CommitRemin…
Browse files Browse the repository at this point in the history
…derJob, refs #55511
  • Loading branch information
daniel-illi committed May 2, 2022
1 parent 8fbe4d9 commit 2243481
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions app/mailers/employee_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ def worktime_deleted_mail(worktime, deleted_by)
@worktime = worktime
@deleted_by = deleted_by

mail(from: Settings.mailer.employee.worktime_deleted.from,
to: worktime.employee.email,
mail(to: worktime.employee.email,
subject: 'PuzzleTime-Eintrag wurde gelöscht')
end

Expand Down
1 change: 1 addition & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class Application < Rails::Application
Crm.init
Invoicing.init
BI.init
CommitReminderJob.schedule
end
end

Expand Down
5 changes: 1 addition & 4 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,7 @@ reports:
lower_limit: 0

mailer:
from: <%= ENV['RAILS_PTIME_MAILER_FROM'] || '[email protected]' %>
employee:
worktime_deleted:
from: <%= ENV['RAILS_PTIME_MAILER_EMPLOYEE_WORKTIME_DELETED_FROM'] || '[email protected]' %>
from: <%= ENV['RAILS_PTIME_MAILER_FROM'] || '[email protected]' %>

influxdb:
export: <%= ENV['RAILS_INFLUXDB_EXPORT'] == '1' %>
Expand Down

0 comments on commit 2243481

Please sign in to comment.