Browse Source

Update download urls

pull/2785/head
Kat 7 months ago
parent
commit
6ff6b3bcc2
  1. 2
      app/jobs/email_csv_job.rb
  2. 2
      app/jobs/scheme_email_csv_job.rb

2
app/jobs/email_csv_job.rb

@ -30,7 +30,7 @@ class EmailCsvJob < ApplicationJob
storage_service.write_file(filename, BYTE_ORDER_MARK + csv_string)
csv_download = CsvDownload.create!(user:, organisation: user.organisation, filename:, download_type: log_type, expiration_time: EXPIRATION_TIME)
url = download_csv_download_path(csv_download.id)
url = download_csv_download_url(csv_download.id, host: ENV["APP_HOST"])
CsvDownloadMailer.new.send_csv_download_mail(user, url, EXPIRATION_TIME)
end

2
app/jobs/scheme_email_csv_job.rb

@ -33,7 +33,7 @@ class SchemeEmailCsvJob < ApplicationJob
storage_service.write_file(filename, BYTE_ORDER_MARK + csv_string)
csv_download = CsvDownload.create!(user:, organisation: user.organisation, filename:, download_type:, expiration_time: EXPIRATION_TIME)
url = download_csv_download_path(csv_download.id)
url = download_csv_download_url(csv_download.id, host: ENV["APP_HOST"])
CsvDownloadMailer.new.send_csv_download_mail(user, url, EXPIRATION_TIME)
end

Loading…
Cancel
Save