internetee-registry/app/mailers/admin_mailer.rb
oleghasjanov 917e426d91 feat: Add lifted force delete domains to daily admin notification
- Add tracking of lifted force delete domains with reason and date in json_statuses_history
- Modify ForceDeleteDailyAdminNotifierJob to include both force deleted and lifted domains
- Update admin mailer template to show separate tables for force deleted and lifted domains
- Update tests to reflect new functionality and fix timing issues with yesterday's data

Key changes:
- Store lift reason and date when canceling force delete
- Add new query method for finding lifted force delete domains
- Split email template into two sections
- Fix tests to properly handle the yesterday time window
2025-03-31 16:07:04 +03:00

10 lines
380 B
Ruby

class AdminMailer < ApplicationMailer
def force_delete_daily_summary(force_deleted_summary, lifted_force_delete_summary)
@force_deleted_domains = force_deleted_summary
@lifted_domains = lifted_force_delete_summary
mail(
to: ENV['admin_notification_email'] || 'admin@registry.test',
subject: "Force Delete Daily Summary - #{Date.current}"
)
end
end