@ -50,9 +50,9 @@ class BulkUploadMailer < NotifyMailer
def send_bulk_upload_complete_mail(user:, bulk_upload:)
url = if bulk_upload.lettings?
lettings_logs_url("[years][]" => "", "[status][]" => "", user: :all, organisation_select: :all)
clear_filters_url(filter_type: "lettings_logs")
else
sales_logs_url("[years][]" => "", "[status][]" => "", user: :all)
clear_filters_url(filter_type: "sales_logs")
end
n_logs = pluralize(bulk_upload.logs.count, "log")
@ -47,7 +47,7 @@ RSpec.describe BulkUploadMailer do
log_type: "lettings",
upload_timestamp: bulk_upload.created_at.to_fs(:govuk_date_and_time),
success_description: "The lettings 2022/23 data you uploaded has been checked. The 0 logs you uploaded are now complete.",
logs_link: lettings_logs_url("[years][]" => "", "[status][]" => "", user: :all, organisation_select: :all),
logs_link: clear_filters_url(filter_type: "lettings_logs"),
},
)