|
|
@ -30,7 +30,6 @@ class EmailCsvJob < ApplicationJob |
|
|
|
storage_service.write_file(filename, BYTE_ORDER_MARK + csv_string) |
|
|
|
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) |
|
|
|
csv_download = CsvDownload.create!(user:, organisation: user.organisation, filename:, download_type: log_type, expiration_time: EXPIRATION_TIME) |
|
|
|
|
|
|
|
|
|
|
|
binding.pry |
|
|
|
|
|
|
|
url = csv_download_url(csv_download.id, host: ENV["APP_HOST"]) |
|
|
|
url = csv_download_url(csv_download.id, host: ENV["APP_HOST"]) |
|
|
|
|
|
|
|
|
|
|
|
CsvDownloadMailer.new.send_csv_download_mail(user, url, EXPIRATION_TIME) |
|
|
|
CsvDownloadMailer.new.send_csv_download_mail(user, url, EXPIRATION_TIME) |
|
|
|