From 75a153808bd82f5208309259cf82480f98f119d8 Mon Sep 17 00:00:00 2001 From: John Ferlito Date: Tue, 17 Sep 2024 18:58:37 +1000 Subject: [PATCH] Make sure email is in same context as zip file --- app/services/csv_downloader_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/csv_downloader_service.rb b/app/services/csv_downloader_service.rb index 20eee878..bf2429d2 100644 --- a/app/services/csv_downloader_service.rb +++ b/app/services/csv_downloader_service.rb @@ -66,7 +66,7 @@ def email @csv_requested_time.in_time_zone('Australia/Sydney'), filename, zip_path - ).deliver_later + ).deliver_now File.delete(path) end